Include Armament and Barrel in INotifyAttack.
This commit is contained in:
@@ -74,7 +74,8 @@ namespace OpenRA.Mods.RA.Activities
|
||||
void LayMine(Actor self)
|
||||
{
|
||||
var limitedAmmo = self.TraitOrDefault<LimitedAmmo>();
|
||||
if (limitedAmmo != null) limitedAmmo.Attacking(self, Target.FromCell(self.Location));
|
||||
if (limitedAmmo != null)
|
||||
limitedAmmo.TakeAmmo();
|
||||
|
||||
self.World.AddFrameEndTask(
|
||||
w => w.CreateActor(self.Info.Traits.Get<MinelayerInfo>().Mine, new TypeDictionary
|
||||
|
||||
Reference in New Issue
Block a user