diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index d471d35d8..1ebf6e90d 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -340,10 +340,18 @@ private: { intValue = target->kicked; } - else if (s == "handsize") - { - intValue = target->controller()->handsize; - } + else if (s == "handsize") + { + intValue = target->controller()->handsize; + } + else if (s == "phandcount") + { + intValue = target->controller()->game->hand->nb_cards; + } + else if (s == "ohandcount") + { + intValue = target->controller()->opponent()->game->hand->nb_cards; + } else { intValue = atoi(s.c_str());