This commit is contained in:
Jeff Wadsworth 2023-02-07 15:22:13 -06:00
parent f0d67bfa27
commit 00c58eb6c0

View file

@ -12,6 +12,8 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.cards.Cards;
import mage.cards.CardsImpl;
import mage.cards.ModalDoubleFacesCard;
import mage.cards.ModalDoubleFacesCardHalf;
import mage.choices.Choice;
import mage.choices.ChoiceImpl;
import mage.constants.AsThoughEffectType;
@ -110,12 +112,25 @@ class AminatousAuguryEffect extends OneShotEffect {
}
}
for (Card card : cardsToCast.getCards(StaticFilters.FILTER_CARD_NON_LAND, game)) {
// TODO staticFilters must be configured to check the main card face (Ex: MDFC card like Sea Gate Restoration does not count as a land if face up)
for (Card card : cardsToCast.getCards(game)) {
// ex: Sea Gate Restoration bug #9956
if (card instanceof ModalDoubleFacesCard) {
ModalDoubleFacesCardHalf leftHalfCard = ((ModalDoubleFacesCard) card).getLeftHalfCard();
if (leftHalfCard != null
&& !leftHalfCard.isLand(game)) {
AminatousAuguryCastFromExileEffect effect = new AminatousAuguryCastFromExileEffect();
effect.setTargetPointer(new FixedTarget(leftHalfCard, game));
game.addEffect(effect, source);
}
continue;
}
if (!card.isLand(game)) {
AminatousAuguryCastFromExileEffect effect = new AminatousAuguryCastFromExileEffect();
effect.setTargetPointer(new FixedTarget(card, game));
game.addEffect(effect, source);
}
// TODO: I think this should be returning true
}
return true;
}
}