Use support sequences for scripted powers
This commit is contained in:
committed by
Gustas Kažukauskas
parent
8833e95f21
commit
74ead504ec
@@ -30,6 +30,9 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[Desc("Activate the actor's Airstrike Power. Returns the aircraft that will attack.")]
|
||||
public Actor[] TargetAirstrike(WPos target, WAngle? facing = null)
|
||||
{
|
||||
foreach (var notify in Self.TraitsImplementing<INotifySupportPower>())
|
||||
notify.Activated(Self);
|
||||
|
||||
return ap.SendAirstrike(Self, target, facing);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user