From 43ba9aa13da0110630198096a92879fa5adca668 Mon Sep 17 00:00:00 2001 From: pankdm Date: Fri, 18 Oct 2013 06:34:23 +0000 Subject: [PATCH] Fixed parsing of "if(ifnot) ... then may ... " --- projects/mtg/src/MTGAbility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index f4db55208..029ddc5ef 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1448,7 +1448,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG string s1 = s; MTGAbility * a1 = NULL; if (s1.find(" then ") != string::npos) - a1 = parseMagicLine(s1.substr(s1.find(" then "+1)), id, spell, card); + a1 = parseMagicLine(s1.substr(s1.find(" then ") + 6), id, spell, card); if(!a1) return NULL; MTGAbility * a = NEW IfThenAbility(observer, id, a1,a2, card,(Targetable*)target,checkIf[i],cond); a->canBeInterrupted = false;