added drawCounter. Returns the number of cards drawn this turn (excludes pre-game draw).
pdrewcount - player draw count odrewcount - opponent draw count
This commit is contained in:
@@ -374,6 +374,14 @@ private:
|
||||
{
|
||||
intValue = target->controller()->opponent()->life;
|
||||
}
|
||||
else if (s == "pdrewcount")
|
||||
{
|
||||
intValue = target->controller()->drawCounter;
|
||||
}
|
||||
else if (s == "odrewcount")
|
||||
{
|
||||
intValue = target->controller()->opponent()->drawCounter;
|
||||
}
|
||||
else if (s == "p" || s == "power")
|
||||
{
|
||||
intValue = target->getPower();
|
||||
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
int offerInterruptOnPhase;
|
||||
int skippingTurn;
|
||||
int extraTurn;
|
||||
int drawCounter;
|
||||
vector<MTGCardInstance*>curses;
|
||||
Player(GameObserver *observer, string deckFile, string deckFileSmall, MTGDeck * deck = NULL);
|
||||
virtual ~Player();
|
||||
|
||||
Reference in New Issue
Block a user