Altercost, Exile Zone & Handsize Modifier
This commit is contained in:
@@ -195,11 +195,10 @@ private:
|
||||
}
|
||||
else if (s == "manacost")
|
||||
{
|
||||
int convertedvalue = card->currentZone == card->controller()->game->battlefield ? card->getManaCost()->getConvertedCost():card->model->data->getManaCost()->getConvertedCost();
|
||||
if (target->currentZone == target->controller()->game->stack)//X is 0 except if it's on the stack
|
||||
intValue = target->getManaCost()->getConvertedCost() + target->castX;
|
||||
intValue = target->myconvertedcost + target->castX;
|
||||
else
|
||||
intValue = convertedvalue;
|
||||
intValue = target->myconvertedcost;
|
||||
}
|
||||
else if (s == "azorius")//devotion blue white
|
||||
{
|
||||
@@ -4087,6 +4086,20 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
//Modify Hand
|
||||
class AModifyHand: public AbilityTP
|
||||
{
|
||||
public:
|
||||
string hand;
|
||||
AModifyHand(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, string hand, int who = TargetChooser::UNSET);
|
||||
int addToGame();
|
||||
int destroy();
|
||||
const string getMenuText();
|
||||
AModifyHand * clone() const;
|
||||
//~AModifyHand();
|
||||
|
||||
};
|
||||
|
||||
//set a players hand size
|
||||
class AASetHand: public ActivatedAbilityTP
|
||||
{
|
||||
|
||||
@@ -122,6 +122,8 @@ class GameObserver{
|
||||
void gameStateBasedEffects();
|
||||
void enchantmentStatus();
|
||||
void Affinity();
|
||||
void ComputeTrinisphere();
|
||||
void RemoveTrinisphere(MTGCardInstance * card);
|
||||
void addObserver(MTGAbility * observer);
|
||||
bool removeObserver(ActionElement * observer);
|
||||
void startGame(GameType, Rules * rules);
|
||||
|
||||
@@ -255,6 +255,7 @@ public:
|
||||
int cardistargetter;
|
||||
int tmodifier;
|
||||
int tmodifierb;
|
||||
int myconvertedcost;
|
||||
|
||||
void eventattacked();
|
||||
void eventattackedAlone();
|
||||
|
||||
@@ -45,6 +45,7 @@ public:
|
||||
int epic;
|
||||
int initLife;
|
||||
int raidcount;
|
||||
int handmodifier;
|
||||
vector<string> prowledTypes;
|
||||
vector<MTGCardInstance*>curses;
|
||||
Player(GameObserver *observer, string deckFile, string deckFileSmall, MTGDeck * deck = NULL);
|
||||
|
||||
Reference in New Issue
Block a user