mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
* Bolas's Citadel - fixed that play top ability card can cause rollback error;
This commit is contained in:
parent
98cbf42a11
commit
503b3e8947
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl {
|
|||
Card cardToCheck = game.getCard(objectId);
|
||||
objectId = CardUtil.getMainCardId(game, objectId); // for split cards
|
||||
|
||||
if (playerId.equals(source.getControllerId()) && cardToCheck.isOwnedBy(source.getControllerId())) {
|
||||
if (cardToCheck != null
|
||||
&& playerId.equals(source.getControllerId())
|
||||
&& cardToCheck.isOwnedBy(source.getControllerId())) {
|
||||
Player controller = game.getPlayer(cardToCheck.getOwnerId());
|
||||
if (controller != null
|
||||
&& controller.getLibrary().getFromTop(game) != null
|
||||
|
|
Loading…
Add table
Reference in a new issue