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:
omegablast2002@yahoo.com
2011-09-25 13:38:15 +00:00
parent 96cbe18be0
commit e8ea5a28d7

View File

@@ -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...