don't announce self-damage
This commit is contained in:
@@ -38,6 +38,10 @@ namespace OpenRA.Mods.RA
|
||||
if (!self.HasTrait<Building>())
|
||||
return;
|
||||
|
||||
/* don't track self-damage */
|
||||
if (e.Attacker != null && e.Attacker.Owner == self.Owner)
|
||||
return;
|
||||
|
||||
if (self.World.FrameNumber - lastAttackTime > info.NotifyInterval * 25)
|
||||
Sound.PlayToPlayer(self.Owner, info.Audio);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user