Fixed displaying false stats

This commit is contained in:
abcdefg30
2014-08-21 12:36:45 +02:00
parent bc4c344cb0
commit a3928bfcf0

View File

@@ -116,6 +116,9 @@ namespace OpenRA.Mods.RA
{
public void Killed(Actor self, AttackInfo e)
{
if (self.Owner.WinState != WinState.Undefined)
return;
var attackerStats = e.Attacker.Owner.PlayerActor.Trait<PlayerStatistics>();
var defenderStats = self.Owner.PlayerActor.Trait<PlayerStatistics>();
if (self.HasTrait<Building>())