Merge two ifs in RevealOnDeath
This commit is contained in:
@@ -51,10 +51,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
void INotifyKilled.Killed(Actor self, AttackInfo attack)
|
void INotifyKilled.Killed(Actor self, AttackInfo attack)
|
||||||
{
|
{
|
||||||
if (IsTraitDisabled)
|
if (IsTraitDisabled || !self.IsInWorld)
|
||||||
return;
|
|
||||||
|
|
||||||
if (!self.IsInWorld)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!info.DeathTypes.IsEmpty && !attack.Damage.DamageTypes.Overlaps(info.DeathTypes))
|
if (!info.DeathTypes.IsEmpty && !attack.Damage.DamageTypes.Overlaps(info.DeathTypes))
|
||||||
|
|||||||
Reference in New Issue
Block a user