added abilities= keyword "devoid"

abilities=haste,flying,devoid
would make a flying haste colorless creature.
This commit is contained in:
zethfoxster
2016-06-01 18:47:19 -04:00
parent ac9dfd570a
commit 1369a08863
3 changed files with 19 additions and 2 deletions

View File

@@ -638,6 +638,21 @@ void GameObserver::gameStateBasedEffects()
zone->cards[c]->cardistargetter = 0;
}
}
///while checking all these zones, lets also strip devoid cards of thier colors
for (int w = 0; w < zone->nb_cards; w++)
{
MTGCardInstance * card = zone->cards[w];
for (int i = Constants::MTG_COLOR_GREEN; i <= Constants::MTG_COLOR_WHITE; ++i)
{
if (card->has(Constants::DEVOID))
{
card->removeColor(i);
}
}
}
}//check for losers if its GAMEOVER clear the stack to allow gamestateeffects to continue
players[d]->DeadLifeState();
}