don't announce self-damage

This commit is contained in:
Chris Forbes
2011-12-23 16:41:29 +13:00
parent 480c35ab58
commit c1e6e3f9b9

View File

@@ -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);