mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Ob Nixilis, Unshacked - Fixed that it doesn't triggered on failing to find a card (fixes #5367).
This commit is contained in:
parent
fde0ba284a
commit
b0395f704f
1 changed files with 4 additions and 3 deletions
|
@ -2463,13 +2463,14 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
for (UUID targetId : newTarget.getTargets()) {
|
||||
target.add(targetId, game);
|
||||
}
|
||||
if (triggerEvents) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LIBRARY_SEARCHED, targetPlayerId, playerId));
|
||||
}
|
||||
|
||||
} else if (targetPlayerId.equals(playerId) && handleLibraryCastableCards(library, game, targetPlayerId)) { // for handling Panglacial Wurm
|
||||
newTarget.clearChosen();
|
||||
continue;
|
||||
}
|
||||
if (triggerEvents) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LIBRARY_SEARCHED, targetPlayerId, playerId));
|
||||
}
|
||||
break;
|
||||
} while (true);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue