pay zero
todo: all zones
This commit is contained in:
@@ -234,7 +234,8 @@ class Constants
|
|||||||
PROTECTIONFROMCOLOREDSPELLS = 116,
|
PROTECTIONFROMCOLOREDSPELLS = 116,
|
||||||
MYGCREATUREEXILER = 117,
|
MYGCREATUREEXILER = 117,
|
||||||
OPPGCREATUREEXILER = 118,
|
OPPGCREATUREEXILER = 118,
|
||||||
NB_BASIC_ABILITIES = 119,
|
PAYZERO = 119,
|
||||||
|
NB_BASIC_ABILITIES = 120,
|
||||||
|
|
||||||
|
|
||||||
RARITY_S = 'S', //Special Rarity
|
RARITY_S = 'S', //Special Rarity
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
|||||||
"madness",
|
"madness",
|
||||||
"protectionfromcoloredspells",
|
"protectionfromcoloredspells",
|
||||||
"mygcreatureexiler",
|
"mygcreatureexiler",
|
||||||
"oppgcreatureexiler"
|
"oppgcreatureexiler",
|
||||||
|
"payzero"
|
||||||
};
|
};
|
||||||
|
|
||||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||||
|
|||||||
@@ -1139,6 +1139,8 @@ int MTGPlayFromGraveyardRule::isReactingToClick(MTGCardInstance * card, ManaCost
|
|||||||
{
|
{
|
||||||
Player * player = game->currentlyActing();
|
Player * player = game->currentlyActing();
|
||||||
ManaCost * cost = card->getManaCost();
|
ManaCost * cost = card->getManaCost();
|
||||||
|
if (card->has(Constants::PAYZERO))
|
||||||
|
cost = ManaCost::parseManaCost("{0}",NULL,NULL);
|
||||||
|
|
||||||
if (!player->game->graveyard->hasCard(card))
|
if (!player->game->graveyard->hasCard(card))
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1154,7 +1156,8 @@ int MTGPlayFromGraveyardRule::reactToClick(MTGCardInstance * card)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ManaCost * cost = card->getManaCost();
|
ManaCost * cost = card->getManaCost();
|
||||||
|
if (card->has(Constants::PAYZERO))
|
||||||
|
cost = ManaCost::parseManaCost("{0}",NULL,NULL);
|
||||||
card->paymenttype = MTGAbility::PUT_INTO_PLAY;
|
card->paymenttype = MTGAbility::PUT_INTO_PLAY;
|
||||||
|
|
||||||
return MTGAlternativeCostRule::reactToClick(card, cost, ManaCost::MANA_PAID);
|
return MTGAlternativeCostRule::reactToClick(card, cost, ManaCost::MANA_PAID);
|
||||||
|
|||||||
Reference in New Issue
Block a user