Fix d2k NukePower sequence requirement

This commit is contained in:
reaperrr
2015-08-30 13:44:25 +02:00
parent 9da56f51e2
commit c39c7cdc4e
3 changed files with 7 additions and 3 deletions

View File

@@ -75,8 +75,11 @@ namespace OpenRA.Mods.Common.Traits
else
Sound.Play(Info.IncomingSound);
var wsb = self.Trait<WithSpriteBody>();
wsb.PlayCustomAnimation(self, info.ActivationSequence);
if (!string.IsNullOrEmpty(info.ActivationSequence))
{
var wsb = self.Trait<WithSpriteBody>();
wsb.PlayCustomAnimation(self, info.ActivationSequence);
}
var targetPosition = self.World.Map.CenterOfCell(order.TargetLocation);
var missile = new NukeLaunch(self.Owner, info.MissileWeapon,