diff --git a/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs b/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs index 5e40985434..88c5bec472 100644 --- a/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs +++ b/OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs @@ -233,16 +233,21 @@ namespace OpenRA.Mods.Common.Traits var attackerStats = e.Attacker.Owner.PlayerActor.Trait(); if (self.Info.HasTraitInfo()) { - attackerStats.BuildingsKilled++; + if (!self.Owner.NonCombatant) + attackerStats.BuildingsKilled++; + playerStats.BuildingsDead++; } else if (self.Info.HasTraitInfo()) { - attackerStats.UnitsKilled++; + if (!self.Owner.NonCombatant) + attackerStats.UnitsKilled++; + playerStats.UnitsDead++; } - attackerStats.KillsCost += cost; + if (!self.Owner.NonCombatant) + attackerStats.KillsCost += cost; } void INotifyCreated.Created(Actor self)