diff --git a/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs b/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs index f2f78faa2b..ab7d472687 100644 --- a/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs +++ b/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs @@ -235,23 +235,22 @@ namespace OpenRA.Mods.Common.Traits return; var attackerStats = e.Attacker.Owner.PlayerActor.Trait(); - var defenderStats = self.Owner.PlayerActor.Trait(); if (self.Info.HasTraitInfo()) { attackerStats.BuildingsKilled++; - defenderStats.BuildingsDead++; + playerStats.BuildingsDead++; } else if (self.Info.HasTraitInfo()) { attackerStats.UnitsKilled++; - defenderStats.UnitsDead++; + playerStats.UnitsDead++; } attackerStats.KillsCost += cost; - defenderStats.DeathsCost += cost; + playerStats.DeathsCost += cost; if (includedInArmyValue) { - defenderStats.ArmyValue -= cost; + playerStats.ArmyValue -= cost; includedInArmyValue = false; playerStats.Units[actorName].Count--; }