Proper usage of IHealthInfo.

This commit is contained in:
Andre Mohren
2018-10-30 07:34:41 +01:00
committed by Paul Chote
parent 2ad8179672
commit 8b8a14e0b8

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Warheads
public override bool IsValidAgainst(Actor victim, Actor firedBy)
{
// Cannot be damaged without a Health trait
if (!victim.Info.HasTraitInfo<HealthInfo>())
if (!victim.Info.HasTraitInfo<IHealthInfo>())
return false;
if (Damage < 0 && victim.GetDamageState() == DamageState.Undamaged)