fixed damage dealt npe

This commit is contained in:
Chiss 2014-08-23 18:00:23 +10:00
parent af9bf0727a
commit 7348a26951
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@ public class DamageDealtStatTracker extends StatTracker<Game>
return;
getGame().AddStat(damager, "Damage Dealt", (int) Math.round(event.GetDamage()), false, false);
getGame().AddStat(damager, getGame().GetKit(damager).GetName() + " Damage Dealt", (int) Math.round(event.GetDamage()), false, false);
if (getGame() != null && getGame().GetKit(damager) != null)
getGame().AddStat(damager, getGame().GetKit(damager).GetName() + " Damage Dealt", (int) Math.round(event.GetDamage()), false, false);
}
}