This commit is contained in:
Anthony Calosa
2016-06-02 20:39:21 +08:00
parent 20e365ea9c
commit f4c17aaf45
5 changed files with 95 additions and 7 deletions

View File

@@ -584,6 +584,18 @@ private:
if (target->controller()->life >= target->controller()->initLife)
intValue = 1;
}
else if (s == "plibrarycount")
{
intValue = 0;
if (target->controller()->game->library->nb_cards)
intValue = target->controller()->game->library->nb_cards;
}
else if (s == "olibrarycount")
{
intValue = 0;
if (target->controller()->opponent()->game->library->nb_cards)
intValue = target->controller()->opponent()->game->library->nb_cards;
}
else if (s == "highestlifetotal")
{
intValue = target->controller()->life <= target->controller()->opponent()->life? target->controller()->opponent()->life:target->controller()->life;
@@ -6064,9 +6076,12 @@ class AADepleter: public ActivatedAbilityTP
public:
string nbcardsStr;
bool toexile;
bool cascade;
AADepleter(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string nbcardsStr, ManaCost * _cost = NULL,
int who = TargetChooser::UNSET, bool toexile = false);
int who = TargetChooser::UNSET, bool toexile = false, bool cascade = false);
int resolve();
string Cascade;
void toCastCard(MTGCardInstance * card);
const string getMenuText();
AADepleter * clone() const;
};

View File

@@ -89,6 +89,7 @@ public:
bool isMorphed;
bool isFlipped;
bool isPhased;
bool isCascaded;
int phasedTurn;
bool graveEffects;
bool exileEffects;