From a9352a3b697e41e969b7f6b47fe280dd9ecfc8f3 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 19 Jan 2013 02:06:46 +0000 Subject: [PATCH] opened all possible restrictions to be checked as a intvalue of 1, inline with anthonys change a couple revs back. this(variable:restriction{casted a spell}) --- projects/mtg/include/AllAbilities.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 6b8d6142a..3569a32fb 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -164,6 +164,17 @@ private: } SAFE_DELETE(tc); } + else if (s.find("restriction{") != string::npos) + { + vector splitRest = parseBetween(s,"restriction{","}"); + if (splitRest.size()) + { + AbilityFactory abf(target->getObserver()); + int checkCond = abf.parseCastRestrictions(target,target->controller(),splitRest[1].c_str()); + if(checkCond) + intValue = 1; + } + } else if (s.find("counter{") != string::npos) { intValue = 0;