Fix for issue 962 (Hexproof) by Dmitri
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user