Cascade Class

seperate cascade and fix cant life change :)
This commit is contained in:
Anthony Calosa
2016-06-03 10:40:38 +08:00
parent 0493c4063f
commit 62fa9acc9f
5 changed files with 97 additions and 61 deletions

View File

@@ -6076,16 +6076,27 @@ 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, bool cascade = false);
int who = TargetChooser::UNSET, bool toexile = false);
int resolve();
string Cascade;
void toCastCard(MTGCardInstance * card);
const string getMenuText();
AADepleter * clone() const;
};
//AACascade
class AACascade: public ActivatedAbilityTP
{
public:
string nbcardsStr;
AACascade(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string nbcardsStr, ManaCost * _cost = NULL,
int who = TargetChooser::UNSET);
int resolve();
void toCastCard(MTGCardInstance * card);
const string getMenuText();
AACascade * clone() const;
};
//Generic skip turn/extra turn
class AAModTurn: public ActivatedAbilityTP
{