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:
@@ -1061,6 +1061,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
if (splitRest.size())
|
if (splitRest.size())
|
||||||
trigger->castRestriction = splitRest[1];
|
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)
|
//Dirty way to remove the trigger text (could get in the way)
|
||||||
if (trigger)
|
if (trigger)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user