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})
This commit is contained in:
omegablast2002@yahoo.com
2013-01-19 02:06:46 +00:00
parent e67084afb9
commit a9352a3b69

View File

@@ -164,6 +164,17 @@ private:
}
SAFE_DELETE(tc);
}
else if (s.find("restriction{") != string::npos)
{
vector<string> 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;