More code compliance. New tests.

This commit is contained in:
Bjørn Snoen
2013-12-21 19:31:32 +01:00
parent 60219411f6
commit 928ca3497a
5 changed files with 130 additions and 5 deletions
+5 -2
View File
@@ -1227,9 +1227,12 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
//creature dealt damage to anything
else if (attribute.find("damager") != string::npos)
{
if (minus){
if (minus)
{
cd.CDdamager = -1;
} else {
}
else
{
cd.CDdamager = 1;
}
}
+7 -3
View File
@@ -486,10 +486,14 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
}
}
//creature dealt damage to anything
else if (attribute.find("damager") != string::npos){
if (minus){
else if (attribute.find("damager") != string::npos)
{
if (minus)
{
cd->CDdamager = -1;
} else {
}
else
{
cd->CDdamager = 1;
}
}