allow FlyAttack to work without AttackPlane
This commit is contained in:
@@ -28,8 +28,9 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
if( limitedAmmo != null && !limitedAmmo.HasAmmo() )
|
if( limitedAmmo != null && !limitedAmmo.HasAmmo() )
|
||||||
Cancel( self );
|
Cancel( self );
|
||||||
|
|
||||||
var attack = self.Trait<AttackPlane>();
|
var attack = self.TraitOrDefault<AttackPlane>();
|
||||||
attack.DoAttack( self, Target );
|
if (attack != null)
|
||||||
|
attack.DoAttack( self, Target );
|
||||||
|
|
||||||
if( inner == null )
|
if( inner == null )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user