phased cards shouldn't be removed from the game by treason or the effects of unearth if they we're phased out by an effect during the turn in which they were to be destroyed.

This commit is contained in:
omegablast2002@yahoo.com
2011-10-10 14:09:04 +00:00
parent 060164acce
commit 516089869d

View File

@@ -575,17 +575,20 @@ void GameObserver::gameStateBasedEffects()
{
MTGCardInstance * c = z->cards[t];
if (c->has(Constants::TREASON))
if(!c->isPhased)
{
WEvent * e = NEW WEventCardSacrifice(c);
receiveEvent(e);
if (c->has(Constants::TREASON))
{
WEvent * e = NEW WEventCardSacrifice(c);
receiveEvent(e);
p->game->putInGraveyard(c);
}
if (c->has(Constants::UNEARTH))
{
p->game->putInExile(c);
p->game->putInGraveyard(c);
}
if (c->has(Constants::UNEARTH))
{
p->game->putInExile(c);
}
}
if(nbcards > z->nb_cards)
{