Improved "can play land" restriction used for double-face modal cards from Zendikar Rising set.
This commit is contained in:
@@ -834,6 +834,8 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
|||||||
card->addType("Land");
|
card->addType("Land");
|
||||||
if (observer->currentActionPlayer->game->playRestrictions->canPutIntoZone(card, observer->currentActionPlayer->game->inPlay) == PlayRestriction::CANT_PLAY)
|
if (observer->currentActionPlayer->game->playRestrictions->canPutIntoZone(card, observer->currentActionPlayer->game->inPlay) == PlayRestriction::CANT_PLAY)
|
||||||
canplay = false;
|
canplay = false;
|
||||||
|
if (!card->getObserver() || !card->StackIsEmptyandSorcerySpeed())
|
||||||
|
canplay = false;
|
||||||
if(!isLand)
|
if(!isLand)
|
||||||
card->removeType("Land");
|
card->removeType("Land");
|
||||||
if(!canplay)
|
if(!canplay)
|
||||||
|
|||||||
Reference in New Issue
Block a user