Include Armament and Barrel in INotifyAttack.

This commit is contained in:
Paul Chote
2013-08-03 16:21:57 +12:00
parent deb03e7a02
commit 755fa6eaf4
11 changed files with 17 additions and 9 deletions

View File

@@ -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