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

View File

@@ -234,7 +234,8 @@ class Constants
PROTECTIONFROMCOLOREDSPELLS = 116,
MYGCREATUREEXILER = 117,
OPPGCREATUREEXILER = 118,
NB_BASIC_ABILITIES = 119,
PAYZERO = 119,
NB_BASIC_ABILITIES = 120,
RARITY_S = 'S', //Special Rarity

View File

@@ -147,7 +147,8 @@ const char* Constants::MTGBasicAbilities[] = {
"madness",
"protectionfromcoloredspells",
"mygcreatureexiler",
"oppgcreatureexiler"
"oppgcreatureexiler",
"payzero"
};
map<string,int> Constants::MTGBasicAbilitiesMap;

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);