Coding style compliance

This commit is contained in:
Bjørn Snoen
2013-12-21 14:33:44 +01:00
parent 642f5bb515
commit 60219411f6
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -228,7 +228,8 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
match = NULL; match = NULL;
} }
if ((CDdamager == -1 && (card->damageToOpponent || card->damageToController || card->damageToCreature)) || (CDdamager == 1 && !(card->damageToOpponent || card->damageToController || card->damageToCreature))) if ((CDdamager == -1 && (card->damageToOpponent || card->damageToController || card->damageToCreature))
|| (CDdamager == 1 && !(card->damageToOpponent || card->damageToController || card->damageToCreature)))
{ {
match = NULL; match = NULL;
} }
+2 -1
View File
@@ -1225,7 +1225,8 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
} }
} }
//creature dealt damage to anything //creature dealt damage to anything
else if (attribute.find("damager") != string::npos){ else if (attribute.find("damager") != string::npos)
{
if (minus){ if (minus){
cd.CDdamager = -1; cd.CDdamager = -1;
} else { } else {