Altercost

Altercost alter cards to be cast...
Removed Trinisphere temporarily...
This commit is contained in:
Anthony Calosa
2015-10-30 07:11:16 +08:00
parent 40db1180df
commit 8793feb9ba
12 changed files with 297 additions and 149 deletions

View File

@@ -1139,8 +1139,6 @@ int MTGPlayFromGraveyardRule::isReactingToClick(MTGCardInstance * card, ManaCost
{
Player * player = game->currentlyActing();
ManaCost * cost = card->getManaCost();
if (card->has(Constants::PAYZERO))
cost = ManaCost::parseManaCost("{0}",NULL,NULL);
if (!player->game->graveyard->hasCard(card))
return 0;
@@ -1156,8 +1154,7 @@ int MTGPlayFromGraveyardRule::reactToClick(MTGCardInstance * card)
return 0;
ManaCost * cost = card->getManaCost();
if (card->has(Constants::PAYZERO))
cost = ManaCost::parseManaCost("{0}",NULL,NULL);
card->paymenttype = MTGAbility::PUT_INTO_PLAY;
return MTGAlternativeCostRule::reactToClick(card, cost, ManaCost::MANA_PAID);