* Combat - Fixed a bug that the game log showed block information of blocks that were undone.

This commit is contained in:
LevelX2 2015-09-13 23:35:13 +02:00
parent 70b33e5475
commit 9da4d44ad2

View file

@ -424,7 +424,7 @@ public class Combat implements Serializable, Copyable<Combat> {
*/
private void logBlockerInfo(Player defender, Game game) {
boolean shownDefendingPlayer = game.getPlayers().size() < 3; // only two players no ned to sow the attacked player
for (CombatGroup group : this.getGroups()) {
for (CombatGroup group : game.getCombat().getGroups()) {
if (group.defendingPlayerId.equals(defender.getId())) {
if (!shownDefendingPlayer) {
game.informPlayers("Attacked player: " + defender.getLogName());