set the current controller to do action

let the controller of the action do the abilty, also fix casted cards
that's been casted using castcard and be put into its owner's graveyard
This commit is contained in:
Anthony Calosa
2017-02-23 14:04:16 +08:00
parent a1af7d9b9f
commit 039be43c2b
3 changed files with 6 additions and 6 deletions

View File

@@ -567,12 +567,12 @@ int PutInGraveyard::resolve()
MTGGameZone * zone = card->getCurrentZone();
if (card->basicAbilities[(int)Constants::EXILEDEATH])
{
card->owner->game->putInZone(card, zone, card->owner->game->exile);
card->controller()->game->putInZone(card, zone, card->owner->game->exile);
return 1;
}
if (zone == observer->players[0]->game->inPlay || zone == observer->players[1]->game->inPlay)
{
card->owner->game->putInZone(card, zone, card->owner->game->graveyard);
card->controller()->game->putInZone(card, zone, card->owner->game->graveyard);
return 1;
}
return 0;