Added a new keyword "excessdamage" to retrieve theamount of exceeded damage to creature or planeswalker, fixed an issue on planeswalker damage count, added a new keyword "genrand" to generate a random number between 0 and a specific number (e.g. "genrand3"), improved Flip ability in order to allow the flip back from copy for a generic card name (e.g. "flip(myorigname) undocpy)"

This commit is contained in:
Vittorio Alfieri
2021-01-25 17:24:15 +01:00
parent 4bdc1fdfe1
commit c60f8787d1
7 changed files with 47 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ int CardPrimitive::init()
types.clear();
nameOrig = "";
magicText = "";
magicTexts.clear();
spellTargetType = "";
@@ -419,8 +420,8 @@ bool CardPrimitive::hasType(int _type)
{
if (types.size() > 400) {return false;} // Null pointer?
for (size_t i = 0; i < types.size(); i++)
if (types[i] == _type)
return true;
if (types[i] == _type)
return true;
return false;
}