fixed damage dealt npe
This commit is contained in:
parent
af9bf0727a
commit
7348a26951
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user