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)
|
||||
{
|
||||
if (IsTraitDisabled)
|
||||
return;
|
||||
|
||||
if (!self.IsInWorld)
|
||||
if (IsTraitDisabled || !self.IsInWorld)
|
||||
return;
|
||||
|
||||
if (!info.DeathTypes.IsEmpty && !attack.Damage.DamageTypes.Overlaps(info.DeathTypes))
|
||||
|
||||
Reference in New Issue
Block a user