From e8ea5a28d7fae14edaf1800243068537701e2a0f Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sun, 25 Sep 2011 13:38:15 +0000 Subject: [PATCH] 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. --- projects/mtg/src/MTGAbility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 666739b60..372debbd8 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -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...