minor refactor

This commit is contained in:
Anthony Calosa
2017-01-31 22:01:19 +08:00
parent 92b4909fc8
commit a97a7edca6
2 changed files with 21 additions and 13 deletions
+8
View File
@@ -536,6 +536,14 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
if(!card->discarded)
return 0;
}
check = restriction[i].find("cardistargeted");
if(check != string::npos)
{
bool istarget = card->isTargetted();
if(!istarget)
return 0;
}
check = restriction[i].find("copiedacard");
if(check != string::npos)