revert pw attack rule

need to refactor this as this cause crashes on android when you cast a
planeswalker
This commit is contained in:
Anthony Calosa
2017-03-01 16:07:12 +08:00
parent 3bf1cca118
commit d761bac85c
11 changed files with 17 additions and 48 deletions
+5 -1
View File
@@ -742,10 +742,14 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
}
check = restriction[i].find("didnotcastnontoken");
if(check != string::npos)
{
restriction.push_back("lastturn(*[-token]|mystack,mybattlefield)~lessthan~1");
}
check = restriction[i].find("didnotcastnontoken");
if(check != string::npos)
{
restriction.push_back("lastturn(*[-token]|opponentstack,opponentbattlefield)~lessthan~1");
}
check = restriction[i].find("paid(");
if(check != string::npos)
{