pay zero
todo: all zones
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -147,7 +147,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
||||
"madness",
|
||||
"protectionfromcoloredspells",
|
||||
"mygcreatureexiler",
|
||||
"oppgcreatureexiler"
|
||||
"oppgcreatureexiler",
|
||||
"payzero"
|
||||
};
|
||||
|
||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user