added parallel lives
support token doubler... :)
This commit is contained in:
@@ -68366,6 +68366,13 @@ mana={3}{G}{G}
|
|||||||
type=Sorcery
|
type=Sorcery
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
|
name=Parallel Lives
|
||||||
|
abilities=tokenizer
|
||||||
|
text=If an effect would put one or more tokens onto the battlefield under your control, it puts twice that many of those tokens onto the battlefield instead.
|
||||||
|
mana={3}{G}
|
||||||
|
type=Enchantment
|
||||||
|
[/card]
|
||||||
|
[card]
|
||||||
name=Paralyze
|
name=Paralyze
|
||||||
target=creature
|
target=creature
|
||||||
auto=tap
|
auto=tap
|
||||||
|
|||||||
@@ -3140,7 +3140,7 @@ public:
|
|||||||
SAFE_DELETE(NewPow);
|
SAFE_DELETE(NewPow);
|
||||||
SAFE_DELETE(NewTou);
|
SAFE_DELETE(NewTou);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < multiplier->getValue(); ++i)
|
for (int i = 0; i < Tokenizer(); ++i)
|
||||||
{
|
{
|
||||||
//MTGCardInstance * myToken;
|
//MTGCardInstance * myToken;
|
||||||
if (tokenId)
|
if (tokenId)
|
||||||
@@ -3199,6 +3199,23 @@ public:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Tokenizer()//tokenizer
|
||||||
|
{
|
||||||
|
int tokenize = 1;
|
||||||
|
if (source->controller()->game->battlefield->hasAbility(Constants::TOKENIZER))
|
||||||
|
{
|
||||||
|
int nbcards = source->controller()->game->battlefield->nb_cards;
|
||||||
|
for (int j = 0; j < nbcards; j++)
|
||||||
|
{
|
||||||
|
if (source->controller()->game->battlefield->cards[j]->has(Constants::TOKENIZER))
|
||||||
|
tokenize *= 2;
|
||||||
|
}
|
||||||
|
return multiplier->getValue()*tokenize;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return multiplier->getValue();
|
||||||
|
}
|
||||||
|
|
||||||
void setTokenOwner()
|
void setTokenOwner()
|
||||||
{
|
{
|
||||||
switch(who)
|
switch(who)
|
||||||
|
|||||||
@@ -219,7 +219,8 @@ class Constants
|
|||||||
LURE = 101,
|
LURE = 101,
|
||||||
NOLEGEND = 102,
|
NOLEGEND = 102,
|
||||||
CANPLAYFROMGRAVEYARD = 103,
|
CANPLAYFROMGRAVEYARD = 103,
|
||||||
NB_BASIC_ABILITIES = 104,
|
TOKENIZER = 104,
|
||||||
|
NB_BASIC_ABILITIES = 105,
|
||||||
|
|
||||||
|
|
||||||
RARITY_S = 'S', //Special Rarity
|
RARITY_S = 'S', //Special Rarity
|
||||||
|
|||||||
@@ -132,7 +132,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
|||||||
"soulbond",
|
"soulbond",
|
||||||
"lure",
|
"lure",
|
||||||
"nolegend",
|
"nolegend",
|
||||||
"canplayfromgraveyard"
|
"canplayfromgraveyard",
|
||||||
|
"tokenizer"//parallel lives
|
||||||
};
|
};
|
||||||
|
|
||||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user