Some combat fixes

This commit is contained in:
L_J 2018-05-19 05:22:50 +00:00 committed by GitHub
parent 865624eacd
commit 0512558c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2353,7 +2353,12 @@ public abstract class PlayerImpl implements Player, Serializable {
@Override
public void declareBlocker(UUID defenderId, UUID blockerId, UUID attackerId, Game game) {
if (isHuman()) {
declareBlocker(defenderId, blockerId, attackerId, game, true);
}
@Override
public void declareBlocker(UUID defenderId, UUID blockerId, UUID attackerId, Game game, boolean allowUndo) {
if (isHuman() && allowUndo) {
setStoredBookmark(game.bookmarkState());
}
Permanent blocker = game.getPermanent(blockerId);