From 25e681c04acecaad28cc5ff559a542d27205095e Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 28 Jan 2017 07:38:45 +0800 Subject: [PATCH] test fix ensnaring bridge --- projects/mtg/src/MTGAbility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 290969e81..3a4a582c7 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -389,7 +389,7 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe if (check != string::npos)//for opponent creatures { Player * checkCurrent = card->controller(); - if(card->getCurrentPower() <= checkCurrent->opponent()->game->hand->nb_cards) + if(card->power <= checkCurrent->opponent()->game->hand->nb_cards) return 0; } @@ -397,7 +397,7 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe if (check != string::npos)//for controller creatures { Player * checkCurrent = card->controller(); - if(card->getCurrentPower() <= checkCurrent->game->hand->nb_cards) + if(card->power <= checkCurrent->game->hand->nb_cards) return 0; } //end