From fffe739ec189f34b03e393ccc01df2b13168dc4c Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Thu, 23 Aug 2012 23:24:55 +0000 Subject: [PATCH] setting Tc->targetter to Null on countByCanTarget() the functions that call this don't care about protection, it is used to find a number of objects which are considered valid even with protections to the source. thanks Dopple for finding this bug. --- projects/mtg/src/MTGGameZones.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGGameZones.cpp b/projects/mtg/src/MTGGameZones.cpp index d01832bc4..1224484f5 100644 --- a/projects/mtg/src/MTGGameZones.cpp +++ b/projects/mtg/src/MTGGameZones.cpp @@ -531,7 +531,7 @@ unsigned int MTGGameZone::countByCanTarget(TargetChooser * tc) { if(!tc) return 0; - + tc->targetter = NULL;//becuase we are counting what can be targeted by this TC, we don't care if cards have protection. int result = 0; for (int i = 0; i < (nb_cards); i++) {