try to fix compilation

../projects/mtg/include/AllAbilities.h:706: error: suggest explicit
braces to avoid ambiguous 'else'
This commit is contained in:
Anthony Calosa
2016-06-11 21:44:33 +08:00
parent 0f74558892
commit 70bc60104f

View File

@@ -703,12 +703,10 @@ private:
else if (s == "morethanfourcards")
{
intValue = 0;
if(card->playerTarget)//blackvise
if ((card->playerTarget->game->hand->nb_cards - 4)>0)
intValue = (card->playerTarget->game->hand->nb_cards - 4);
else//viseling
if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
if ((card->playerTarget) && (card->playerTarget->game->hand->nb_cards - 4)>0)
intValue = (card->playerTarget->game->hand->nb_cards - 4);
else if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
}
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
{