Remove redundant CanAttackGround flag.
This commit is contained in:
@@ -19,7 +19,6 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
public abstract class AttackBaseInfo : ITraitInfo
|
public abstract class AttackBaseInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public readonly bool CanAttackGround = true;
|
|
||||||
public readonly string Cursor = "attack";
|
public readonly string Cursor = "attack";
|
||||||
|
|
||||||
public abstract object Create(ActorInitializer init);
|
public abstract object Create(ActorInitializer init);
|
||||||
@@ -220,8 +219,7 @@ namespace OpenRA.Mods.RA
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (modifiers.HasModifier(TargetModifiers.ForceAttack))
|
if (modifiers.HasModifier(TargetModifiers.ForceAttack))
|
||||||
if (self.Info.Traits.Get<AttackBaseInfo>().CanAttackGround)
|
return true;
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ DOG:
|
|||||||
Armament:
|
Armament:
|
||||||
Weapon: DogJaw
|
Weapon: DogJaw
|
||||||
AttackLeap:
|
AttackLeap:
|
||||||
CanAttackGround: no
|
|
||||||
RenderInfantry:
|
RenderInfantry:
|
||||||
IdleAnimations: idle1,idle2
|
IdleAnimations: idle1,idle2
|
||||||
IgnoresDisguise:
|
IgnoresDisguise:
|
||||||
|
|||||||
Reference in New Issue
Block a user