Block Cost Rule
Update rules folder
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -217,7 +217,7 @@ public:
|
||||
OVERLOAD_COST = 34,
|
||||
BESTOW_COST = 35,
|
||||
ATTACK_COST = 36,
|
||||
ATTACKPLANESWALKER_COST = 37,
|
||||
BLOCK_COST = 37,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -261,6 +261,9 @@ public:
|
||||
int attackCost;
|
||||
int attackCostBackup;
|
||||
int attackPlaneswalkerCost;
|
||||
int attackPlaneswalkerCostBackup;
|
||||
int blockCost;
|
||||
int blockCostBackup;
|
||||
int imprintG;
|
||||
int imprintU;
|
||||
int imprintR;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user