Attack Cost Rule

Update your rules folder
This commit is contained in:
Anthony Calosa
2016-06-14 19:40:02 +08:00
parent 26346f5a42
commit 1f54c7933b
13 changed files with 172 additions and 9 deletions

View File

@@ -4863,6 +4863,19 @@ public:
};
//AAttackSetCost
class AAttackSetCost: public MTGAbility
{
public:
string number;
AAttackSetCost(GameObserver* observer, int _id, MTGCardInstance * _source, string number);
void Update(float dt);
int addToGame();
int destroy();
const string getMenuText();
AAttackSetCost * clone() const;
};
//ABlink
class ABlink: public MTGAbility
{

View File

@@ -216,6 +216,8 @@ public:
PAYZERO_COST = 33,
OVERLOAD_COST = 34,
BESTOW_COST = 35,
ATTACK_COST = 36,
ATTACKPLANESWALKER_COST = 37,
};
};

View File

@@ -258,6 +258,9 @@ public:
ManaCost * computeNewCost(MTGCardInstance * card,ManaCost * oldCost, ManaCost * refCost,bool noTrinisphere = false);
int countTrini;
vector<MTGCardInstance*>imprintedCards;
int attackCost;
int attackCostBackup;
int attackPlaneswalkerCost;
int imprintG;
int imprintU;
int imprintR;

View File

@@ -219,6 +219,18 @@ public:
virtual MTGSuspendRule * clone() const;
};
class MTGAttackCostRule: public PermanentAbility
{
public:
string scost;
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL);
int reactToClick(MTGCardInstance * card);
virtual ostream& toString(ostream& out) const;
MTGAttackCostRule(GameObserver* observer, int _id);
const string getMenuText();
virtual MTGAttackCostRule * clone() const;
};
class MTGAttackRule: public PermanentAbility, public Limitor
{
public: