mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
- Fixed #9956
This commit is contained in:
parent
f0d67bfa27
commit
00c58eb6c0
1 changed files with 21 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue