From 4ad4689603954fe43c36eede93e462588541b198 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 27 Nov 2012 02:45:01 +0000 Subject: [PATCH] allowing restriction to also search for restriction{{ }} incases where we will have squiqqly brackets in a tc. this corrects the bug where helix pennicle restricted trigger was not triggering. --- projects/mtg/src/MTGAbility.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index e744d30fc..354d4c4fe 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1061,6 +1061,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG if (splitRest.size()) trigger->castRestriction = splitRest[1]; } + if (splitTrigger[1].find("restriction{{") != string::npos) + { + vector splitRest = parseBetween(s,"restriction{{","}}"); + if (splitRest.size()) + trigger->castRestriction = splitRest[1]; + } //Dirty way to remove the trigger text (could get in the way) if (trigger) {