Use the new INotifyBurstComplete interface instead of INotifyAttack

This commit is contained in:
abcdefg30
2016-06-12 13:16:43 +02:00
parent ea4f33123e
commit de14264ead

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.TS.Traits
public override object Create(ActorInitializer init) { return new AttackOrderPower(init.Self, this); }
}
class AttackOrderPower : SupportPower, INotifyAddedToWorld, INotifyAttack
class AttackOrderPower : SupportPower, INotifyAddedToWorld, INotifyBurstComplete
{
readonly AttackOrderPowerInfo info;
AttackBase attack;
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.TS.Traits
attack = self.Trait<AttackBase>();
}
void INotifyAttack.Attacking(Actor self, Target target, Armament a, Barrel barrel)
void INotifyBurstComplete.FiredBurst(Actor self, Target target, Armament a)
{
self.World.IssueOrder(new Order("Stop", self, false));
}