unearth rule

This commit is contained in:
Anthony Calosa
2017-03-15 06:35:30 +08:00
parent 417c1af21e
commit be1803dfb6
2 changed files with 37 additions and 20 deletions

View File

@@ -1028,26 +1028,6 @@ void GameObserver::gameStateBasedEffects()
c->ProvokeTarget = NULL;
c->Provoker = NULL;
}
for (int jj = z->nb_cards - 1; jj >= 0; jj--)
{
MTGCardInstance * c = z->cards[jj];
if(c && !c->isPhased)
{
if (c->has(Constants::TREASON))
{
MTGCardInstance * beforeCard = c;
p->game->putInZone(c, c->currentZone, c->owner->game->graveyard);
WEvent * e = NEW WEventCardSacrifice(beforeCard,c);
receiveEvent(e);
}
if (c->has(Constants::UNEARTH))
{
p->game->putInZone(c, c->currentZone, c->owner->game->exile);
}
}
}
MTGGameZone * f = p->game->graveyard;
for (int k = 0; k < f->nb_cards; k++)