Improved AI: now it can cast spells from graveyard using thier Flashback and Retrace costs, fixed a crash in Deck Editor stats loader when a card ability contains some "add" substrings (e.g. "counteradded" followed by "restriction{"), added/fixed primitives.
This commit is contained in:
@@ -493,7 +493,7 @@ void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
|
||||
for (int v = 0; v < (int) abilitiesVector.size(); v++)
|
||||
{
|
||||
string s = abilitiesVector[v];
|
||||
size_t t = s.find("add");
|
||||
size_t t = s.find("add{"); //Fix crash when ability contains "counteradded" or similar substring.
|
||||
if (t != string::npos)
|
||||
{
|
||||
s = s.substr(t + 3);
|
||||
|
||||
Reference in New Issue
Block a user