mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
updated Apex Observatory to work correctly with double-faced cards with different card type.
This commit is contained in:
parent
fa24f8f53b
commit
fad63389d0
1 changed files with 8 additions and 1 deletions
|
|
@ -112,7 +112,14 @@ class ChooseCardTypeEffect extends OneShotEffect {
|
|||
sharedCardTypes.add(entry.getKey());
|
||||
}
|
||||
}
|
||||
|
||||
// handle situations like the double-faced instant/land Jwari Disruption // Jwari Ruins
|
||||
if (sharedCardTypes.isEmpty()) {
|
||||
game.informPlayers(mageObject.getIdName() + " No exiled cards shared a type in exile, so nothing is done.");
|
||||
if (mageObject instanceof Permanent) {
|
||||
((Permanent) mageObject).addInfo("chosen type", CardUtil.addToolTipMarkTags("No exiled cards have the same card type."), game);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
cardTypeChoice.getChoices().retainAll(sharedCardTypes);
|
||||
if (controller.choose(Outcome.Benefit, cardTypeChoice, game)) {
|
||||
if (!game.isSimulation()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue