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.
This commit is contained in:
omegablast2002@yahoo.com
2012-11-27 02:45:01 +00:00
parent a87377b25a
commit 4ad4689603

View File

@@ -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<string> 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)
{