added Raid support

thisturn(creature[attacking]|mybattlefield)~morethan~0 only triggers
once... use raid keyword... if raid then blah...
This commit is contained in:
Anthony Calosa
2015-10-20 11:09:57 +08:00
parent 9f8d2b2d46
commit 7810c65862
6 changed files with 21 additions and 9 deletions
+7
View File
@@ -418,6 +418,13 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
return 0;
}
check = restriction[i].find("raid");
if(check != string::npos)
{
if(card->controller()->raidcount < 1)
return 0;
}
check = restriction[i].find("ownerscontrol");
if(check != string::npos)
{