fix Tanya announcing her own death when walking over a mine

This commit is contained in:
Matthias Mailänder
2014-10-11 12:39:20 +02:00
parent 399275e5f3
commit 2e5aab332e
3 changed files with 11 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA
public void AppliedDamage(Actor self, Actor damaged, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
if (e.DamageState == DamageState.Dead && damaged != e.Attacker) // don't notify suicides
{
if (self.World.WorldTick - lastAnnounce > info.Interval * 25)
Sound.PlayVoice("Kill", self, self.Owner.Country.Race);