Added C21, STA and STX (still in progress) sets, improved Android downloader, added/fixed primitives, added a keyword to get if a card has "X" in its cost, fixed a crash while targeting a spell on stack, added a new option "nolegend" to clone keyword in order to create a token without legendary type and rule, improved "hascnt" keyword with "anycnt" option to count all counters on a card, added a new keyword "hasstorecard" to get if a card has a stored card or not(e.g. fizzlers), added a new keyword "pgmanainstantsorcery" to count the mana value of all instants and sorceries in player graveyard, added a new keyword "currentphase" to get the current game phase.
This commit is contained in:
@@ -3655,6 +3655,8 @@ int AAFizzler::resolve()
|
||||
}
|
||||
}
|
||||
stack->Fizzle(sTarget, fizzleMode);
|
||||
if(!source->storedCard)
|
||||
source->storedCard = sCard; // Store the fizzled card to retrive target information later (e.g. manacost for Reinterpret)
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -5243,6 +5245,9 @@ int AACloner::resolve()
|
||||
|
||||
Spell * spell = NEW Spell(game, myClone);
|
||||
spell->source->isToken = 1;
|
||||
if(spell->source->hasType(Subtypes::TYPE_LEGENDARY) && options.find("nolegend") != string::npos){ // check if the token has to be legendary or not. (e.g. Double Major)
|
||||
spell->source->removeType(Subtypes::TYPE_LEGENDARY);
|
||||
}
|
||||
spell->resolve();
|
||||
spell->source->owner = targetPlayer;
|
||||
spell->source->lastController = targetPlayer;
|
||||
|
||||
Reference in New Issue
Block a user