Jeck - Fixed potential bug in INTIMIDATE. Please review.

This commit is contained in:
wagic.jeck
2009-10-13 23:00:59 +00:00
parent c9b22709ac
commit 0bff0c564b

View File

@@ -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;