Mana produced by snow permanent
This commit is contained in:
Anthony Calosa
2016-06-01 08:31:19 +08:00
parent 26b30cb20d
commit a454c3e564
8 changed files with 178 additions and 1 deletions
+4
View File
@@ -652,6 +652,10 @@ private:
{
intValue = target->controller()->epic;
}
else if (s == "snowcount")
{
intValue = target->controller()->snowManaG + target->controller()->snowManaU +target->controller()->snowManaR + target->controller()->snowManaB + target->controller()->snowManaW + target->controller()->snowManaC;
}
else if (s == "p" || s == "power")
{
intValue = target->getCurrentPower();
+11
View File
@@ -204,6 +204,17 @@ public:
virtual TapCost * clone() const;
};
//Snow cost
class SnowCost : public ExtraCost
{
public:
SnowCost();
virtual int isPaymentSet();
virtual int canPay();
virtual int doPay();
virtual SnowCost * clone() const;
};
//untap cost
class UnTapCost : public ExtraCost
{
+6
View File
@@ -47,6 +47,12 @@ public:
int initLife;
int raidcount;
int handmodifier;
int snowManaG;
int snowManaR;
int snowManaB;
int snowManaU;
int snowManaW;
int snowManaC;
vector<string> prowledTypes;
vector<MTGCardInstance*>curses;
Player(GameObserver *observer, string deckFile, string deckFileSmall, MTGDeck * deck = NULL);