try to fix compilation
../projects/mtg/include/AllAbilities.h:706: error: suggest explicit braces to avoid ambiguous 'else'
This commit is contained in:
@@ -703,11 +703,9 @@ private:
|
|||||||
else if (s == "morethanfourcards")
|
else if (s == "morethanfourcards")
|
||||||
{
|
{
|
||||||
intValue = 0;
|
intValue = 0;
|
||||||
if(card->playerTarget)//blackvise
|
if ((card->playerTarget) && (card->playerTarget->game->hand->nb_cards - 4)>0)
|
||||||
if ((card->playerTarget->game->hand->nb_cards - 4)>0)
|
|
||||||
intValue = (card->playerTarget->game->hand->nb_cards - 4);
|
intValue = (card->playerTarget->game->hand->nb_cards - 4);
|
||||||
else//viseling
|
else if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
|
||||||
if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
|
|
||||||
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
|
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
|
||||||
}
|
}
|
||||||
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
|
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
|
||||||
|
|||||||
Reference in New Issue
Block a user