Block Cost Rule

Update rules folder
This commit is contained in:
Anthony Calosa
2016-06-15 22:26:55 +08:00
parent a2249a7392
commit b38275123a
14 changed files with 238 additions and 43 deletions

View File

@@ -4868,7 +4868,8 @@ class AAttackSetCost: public MTGAbility
{
public:
string number;
AAttackSetCost(GameObserver* observer, int _id, MTGCardInstance * _source, string number);
bool pw;
AAttackSetCost(GameObserver* observer, int _id, MTGCardInstance * _source, string number, bool pw = false);
void Update(float dt);
int addToGame();
int destroy();
@@ -4876,6 +4877,19 @@ public:
AAttackSetCost * clone() const;
};
//ABlockSetCost
class ABlockSetCost: public MTGAbility
{
public:
string number;
ABlockSetCost(GameObserver* observer, int _id, MTGCardInstance * _source, string number);
void Update(float dt);
int addToGame();
int destroy();
const string getMenuText();
ABlockSetCost * clone() const;
};
//ABlink
class ABlink: public MTGAbility
{

View File

@@ -217,7 +217,7 @@ public:
OVERLOAD_COST = 34,
BESTOW_COST = 35,
ATTACK_COST = 36,
ATTACKPLANESWALKER_COST = 37,
BLOCK_COST = 37,
};
};

View File

@@ -261,6 +261,9 @@ public:
int attackCost;
int attackCostBackup;
int attackPlaneswalkerCost;
int attackPlaneswalkerCostBackup;
int blockCost;
int blockCostBackup;
int imprintG;
int imprintU;
int imprintR;

View File

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