Fix Armament not working properly with value 0 in BurstDelays
This commit is contained in:
committed by
Matthias Mailänder
parent
b7e0ed9b87
commit
4dec79a5fb
@@ -85,15 +85,7 @@ namespace OpenRA.Mods.D2k.Activities
|
||||
if (affectedPlayers.Contains(self.World.LocalPlayer))
|
||||
TextNotificationsManager.AddTransientLine(self.World.LocalPlayer, swallow.Info.WormAttackTextNotification);
|
||||
|
||||
var barrel = armament.CheckFire(self, facing, target);
|
||||
if (barrel == null)
|
||||
return false;
|
||||
|
||||
// armament.CheckFire already calls INotifyAttack.PreparingAttack
|
||||
foreach (var notify in self.TraitsImplementing<INotifyAttack>())
|
||||
notify.Attacking(self, target, armament, barrel);
|
||||
|
||||
return true;
|
||||
return armament.CheckFire(self, facing, target, true);
|
||||
}
|
||||
|
||||
public override bool Tick(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user