diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 69693794f..f39949ba0 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -635,6 +635,17 @@ private: { intValue = target->controller()->opponent()->game->hand->nb_cards; } + else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable + { + intValue = 0; + for (int j = card->controller()->game->inPlay->nb_cards - 1; j >= 0; --j) + { + if (card->controller()->game->inPlay->cards[j]->hasType(Subtypes::TYPE_CREATURE)) + { + intValue += card->controller()->game->inPlay->cards[j]->power; + } + } + } else { intValue = atoi(s.c_str());