* Fixed a bug that damage was wrongly still assigned to players during combat that already left the game.

This commit is contained in:
LevelX2 2017-02-04 23:56:03 +01:00
parent a3a6760f4a
commit ff6d79829e
3 changed files with 48 additions and 10 deletions

View file

@ -399,7 +399,9 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
}
} else {
Player defender = game.getPlayer(defenderId);
defender.damage(amount, attacker.getId(), game, true, true);
if (defender.isInGame()) {
defender.damage(amount, attacker.getId(), game, true, true);
}
}
}