added Prowl support.

example usage:
other={1}{B} name(Prowl)
otherrestriction=prowl
This commit is contained in:
anthonycalosa@gmail.com
2013-05-20 02:59:18 +00:00
parent a055044281
commit f0de00086b
5 changed files with 47 additions and 0 deletions

View File

@@ -341,6 +341,22 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
return 0;
}
check = restriction[i].find("prowl");
if(check != string::npos)
{
bool isProwled = false;
for (size_t i = 0; i < card->controller()->prowledTypes.size(); ++i)
{
if ( card->hasSubtype( card->controller()->prowledTypes[i] ))
{
isProwled = true;
break;
}
}
if(!isProwled)
return 0;
}
check = restriction[i].find("ownerscontrol");
if(check != string::npos)
{