todo: all zones
This commit is contained in:
Anthony Calosa
2015-10-29 06:38:59 +08:00
parent d2f3e2cd60
commit 40db1180df
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -147,7 +147,8 @@ const char* Constants::MTGBasicAbilities[] = {
"madness",
"protectionfromcoloredspells",
"mygcreatureexiler",
"oppgcreatureexiler"
"oppgcreatureexiler",
"payzero"
};
map<string,int> Constants::MTGBasicAbilitiesMap;
+4 -1
View File
@@ -1139,6 +1139,8 @@ 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;
@@ -1154,7 +1156,8 @@ 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);