hiddenview

if the target is in library and the source has the hiddenface ability
then hide it
This commit is contained in:
Anthony Calosa
2017-02-14 05:09:28 +08:00
parent 143b3d98b1
commit 2d383e237f
4 changed files with 33 additions and 3 deletions

View File

@@ -1630,6 +1630,17 @@ int GameObserver::isInHand(MTGCardInstance * card)
}
return 0;
}
int GameObserver::isInLibrary(MTGCardInstance * card)
{
for (int i = 0; i < 2; i++)
{
MTGGameZone * library = players[i]->game->library;
if (players[i]->game->isInZone(card, library))
return 1;
}
return 0;
}
void GameObserver::cleanupPhase()
{
currentPlayer->cleanupPhase();