added a space to the parsing of who in @next and @each....this space always existed in the coding we use however i am now making it required, the reason is that now we have tool which can include tc's and "s" was finding opponent and my in the tcs effecting the triggeratphase it created. this should correct that issue.
This commit is contained in:
@@ -645,11 +645,11 @@ TriggeredAbility * AbilityFactory::parseTrigger(string s, string magicText, int
|
||||
}
|
||||
|
||||
int who = 0;
|
||||
if (s.find("my") != string::npos)
|
||||
if (s.find(" my") != string::npos)
|
||||
who = 1;
|
||||
if (s.find("opponent") != string::npos)
|
||||
if (s.find(" opponent") != string::npos)
|
||||
who = -1;
|
||||
if (s.find("targetcontroller") != string::npos)
|
||||
if (s.find(" targetcontroller") != string::npos)
|
||||
who = -2;
|
||||
|
||||
//Next Time...
|
||||
|
||||
Reference in New Issue
Block a user