Fix for issue 962 (Hexproof) by Dmitri

This commit is contained in:
wagic.the.homebrew@gmail.com
2013-09-15 02:57:29 +00:00
parent 7b8189bd13
commit bd25b12fb2
5 changed files with 34 additions and 7 deletions

View File

@@ -919,7 +919,7 @@ bool TargetChooser::validTargetsExist(int maxTargets)
return false;
}
int TargetChooser::countValidTargets()
int TargetChooser::countValidTargets(bool withoutProtections)
{
int result = 0;
@@ -943,7 +943,7 @@ int TargetChooser::countValidTargets()
{
for (int j = 0; j < z->nb_cards; j++)
{
if (canTarget(z->cards[j])) result++;
if (canTarget(z->cards[j], withoutProtections)) result++;
}
}
}