Proper usage of IHealthInfo.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Warheads
|
|||||||
public override bool IsValidAgainst(Actor victim, Actor firedBy)
|
public override bool IsValidAgainst(Actor victim, Actor firedBy)
|
||||||
{
|
{
|
||||||
// Cannot be damaged without a Health trait
|
// Cannot be damaged without a Health trait
|
||||||
if (!victim.Info.HasTraitInfo<HealthInfo>())
|
if (!victim.Info.HasTraitInfo<IHealthInfo>())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (Damage < 0 && victim.GetDamageState() == DamageState.Undamaged)
|
if (Damage < 0 && victim.GetDamageState() == DamageState.Undamaged)
|
||||||
|
|||||||
Reference in New Issue
Block a user