Fixed the "can only block flying creatures effect" (e.g. Varporkin). It was implemented as replacement effect instead of restriction effect which leads to dead locks in combat if it was forced to block a non flyer.

This commit is contained in:
LevelX2 2014-03-16 10:05:20 +01:00
parent 694e1f2bf2
commit 4232a3b7f1
12 changed files with 89 additions and 135 deletions

View file

@ -1585,6 +1585,10 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
if (blocker != null && group != null && group.canBlock(blocker, game)) {
group.addBlocker(blockerId, playerId, game);
game.getCombat().addBlockingGroup(blockerId, attackerId, playerId, game);
} else {
if (this.isHuman()) {
game.informPlayer(this, "You can't block this creature.");
}
}
}