Fix Mirror Gallery & enters "tapped" cards

If Mirror Gallery leaves play, you must check for legendary status.
Fix some cards that enters tapped.
This commit is contained in:
Anthony Calosa
2016-07-27 01:44:18 +08:00
parent 8ff47bf8e2
commit e855ca72aa
4 changed files with 141 additions and 96 deletions

View File

@@ -3187,7 +3187,7 @@ int MTGLegendRule::canBeInList(MTGCardInstance * card)
return 0;
if (card->hasType(Subtypes::TYPE_LEGENDARY) && card->controller()->game->inPlay->hasCard(card))
{
if(card->has(Constants::NOLEGEND))
if(card->has(Constants::NOLEGEND)||card->controller()->opponent()->inPlay()->hasName("Mirror Gallery")||card->controller()->inPlay()->hasName("Mirror Gallery"))
return 0;
else
return 1;