Remove unused negativeDamage variable from AttackBase.
This commit is contained in:
@@ -142,8 +142,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (armament == null)
|
if (armament == null)
|
||||||
yield break;
|
yield break;
|
||||||
|
|
||||||
var negativeDamage = (armament.Weapon.Warheads.FirstOrDefault(w => (w is DamageWarhead)) as DamageWarhead).Damage < 0;
|
yield return new AttackOrderTargeter(this, 6);
|
||||||
yield return new AttackOrderTargeter(this, 6, negativeDamage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -387,7 +386,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
readonly AttackBase ab;
|
readonly AttackBase ab;
|
||||||
|
|
||||||
public AttackOrderTargeter(AttackBase ab, int priority, bool negativeDamage)
|
public AttackOrderTargeter(AttackBase ab, int priority)
|
||||||
{
|
{
|
||||||
this.ab = ab;
|
this.ab = ab;
|
||||||
OrderID = ab.attackOrderName;
|
OrderID = ab.attackOrderName;
|
||||||
|
|||||||
Reference in New Issue
Block a user