Fix attempt

This commit is contained in:
Zzooouhh 2017-12-30 03:15:17 +01:00 committed by GitHub
parent 4c5dc3f839
commit 1f5ab92e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2321,7 +2321,7 @@ public abstract class PlayerImpl implements Player, Serializable {
}
do {
if (newTarget.choose(Outcome.Neutral, playerId, targetPlayerId, game)) {
if (targetPlayerId.equals(playerId) && this.handleLibraryCastableCreatures(library, game, targetPlayerId)) { // for handling Panglacial Wurm
if (targetPlayerId.equals(playerId) && handleLibraryCastableCards(library, game, targetPlayerId)) { // for handling Panglacial Wurm
newTarget.clearChosen();
continue;
}
@ -2330,7 +2330,7 @@ public abstract class PlayerImpl implements Player, Serializable {
target.add(targetId, game);
}
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LIBRARY_SEARCHED, targetPlayerId, playerId));
} else if (targetPlayerId.equals(playerId) && this.handleLibraryCastableCreatures(library, game, targetPlayerId)) {
} else if (targetPlayerId.equals(playerId) && handleLibraryCastableCards(library, game, targetPlayerId)) {
newTarget.clearChosen();
continue;
}