From 0bff0c564bc995f5f267f63d67680e5183f98f1a Mon Sep 17 00:00:00 2001 From: "wagic.jeck" Date: Tue, 13 Oct 2009 23:00:59 +0000 Subject: [PATCH] Jeck - Fixed potential bug in INTIMIDATE. Please review. --- projects/mtg/src/MTGCardInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGCardInstance.cpp b/projects/mtg/src/MTGCardInstance.cpp index ad6e24fe0..a61775f66 100644 --- a/projects/mtg/src/MTGCardInstance.cpp +++ b/projects/mtg/src/MTGCardInstance.cpp @@ -358,7 +358,7 @@ int MTGCardInstance::canBlock(MTGCardInstance * opponent){ //intimidate if (opponent->basicAbilities[Constants::INTIMIDATE] && !(hasColor(Constants::MTG_COLOR_ARTIFACT))){ int canblock = 0; - for (int i = Constants::PROTECTIONGREEN; i <= Constants::PROTECTIONWHITE; ++i){ + for (int i = Constants::MTG_COLOR_GREEN; i <= Constants::MTG_COLOR_WHITE; ++i){ if(hasColor(i) && opponent->hasColor(i)){ canblock = 1; break;