added Prowl support.
example usage:
other={1}{B} name(Prowl)
otherrestriction=prowl
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user