added setting the value of X as you cast a spell with X.
this does not cover abilities yet.
This commit is contained in:
@@ -4358,6 +4358,22 @@ public:
|
||||
AAUntapper * clone() const;
|
||||
};
|
||||
|
||||
/*announce card X*/
|
||||
class AAWhatsX : public ActivatedAbility
|
||||
{
|
||||
public:
|
||||
int value;
|
||||
MTGAbility * costRule;
|
||||
AAWhatsX(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * source, int value = 0, MTGAbility * costRule = NULL);
|
||||
int resolve();
|
||||
const string getMenuText()
|
||||
{
|
||||
sprintf(menuText, "%i", value);
|
||||
return menuText;
|
||||
};
|
||||
AAWhatsX * clone() const;
|
||||
};
|
||||
|
||||
/* set max level up on a levelup creature this is an Ai hint ability, no effect for players.*/
|
||||
class AAWhatsMax: public ActivatedAbility
|
||||
{
|
||||
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
Pos* view;
|
||||
int X;
|
||||
int castX;
|
||||
int setX;
|
||||
int alternateCostPaid[ManaCost::MANA_PAID_WITH_BESTOW + 1];
|
||||
int paymenttype;
|
||||
int castMethod; /* Tells if the card reached its current zone by being cast or not (brought into the zone by an effect). non 0 == cast, 0 == not cast */
|
||||
|
||||
Reference in New Issue
Block a user