Added/fixed primitives, updated the "missing_cards_by_sets" folder, improved all cards with replicate (now they use a special version of multikicker but they don't count as kicked spell), improved all cards with "fizzle" and "fizzleto" ability and improved engine for "fizzle" and "nofizzle" ability (e.g. now it's possible to grant a card the nofizzle ability on stack), added new keyword "mycolnum" to count the number colors of a card.
This commit is contained in:
@@ -1295,9 +1295,17 @@ void WParsedInt::extendedParse(string s, Spell * spell, MTGCardInstance * card)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s == "ishuman")//return if controller is Human or AI
|
||||
else if (s == "ishuman" || s == "mycolnum")//return if controller is Human or AI - return the number of colors of a card.
|
||||
{
|
||||
intValue = (card->controller()->isAI())?0:1;
|
||||
intValue = 0;
|
||||
if (s == "ishuman")
|
||||
intValue = (card->controller()->isAI())?0:1;
|
||||
else if (s == "mycolnum") {
|
||||
for (int i = Constants::MTG_COLOR_GREEN; i <= Constants::MTG_COLOR_WHITE; ++i){
|
||||
if(card->hasColor(i))
|
||||
intValue +=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s == "pexperience" || s == "oexperience")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user