Daddy32 - Fix for issue 196.
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
#include "../include/Translate.h"
|
#include "../include/Translate.h"
|
||||||
#include "../include/ManaCostHybrid.h"
|
#include "../include/ManaCostHybrid.h"
|
||||||
#include "../include/MTGCardInstance.h"
|
#include "../include/MTGCardInstance.h"
|
||||||
#include "../include/MTGCardInstance.h"
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
@@ -1008,7 +1007,6 @@ void GameStateDeckViewer::updateStats() {
|
|||||||
stw.countLands = myDeck->getCount(Constants::MTG_COLOR_LAND);
|
stw.countLands = myDeck->getCount(Constants::MTG_COLOR_LAND);
|
||||||
stw.totalPrice = myDeck->totalPrice();
|
stw.totalPrice = myDeck->totalPrice();
|
||||||
|
|
||||||
stw.countManaProducers = 0;
|
|
||||||
stw.countManaProducers = 0;
|
stw.countManaProducers = 0;
|
||||||
// Mana cost
|
// Mana cost
|
||||||
int currentCount, convertedCost;
|
int currentCount, convertedCost;
|
||||||
|
|||||||
@@ -2096,9 +2096,11 @@ ostream& ListMaintainerAbility::toString(ostream& out) const
|
|||||||
|
|
||||||
TriggerAtPhase::TriggerAtPhase(int id, MTGCardInstance * source, Targetable * target,int _phaseId, int who):TriggeredAbility(id, source,target),phaseId(_phaseId),who(who){
|
TriggerAtPhase::TriggerAtPhase(int id, MTGCardInstance * source, Targetable * target,int _phaseId, int who):TriggeredAbility(id, source,target),phaseId(_phaseId),who(who){
|
||||||
GameObserver * g = GameObserver::GetInstance();
|
GameObserver * g = GameObserver::GetInstance();
|
||||||
|
if (g) {
|
||||||
newPhase = g->getCurrentGamePhase();
|
newPhase = g->getCurrentGamePhase();
|
||||||
currentPhase = newPhase;
|
currentPhase = newPhase;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int TriggerAtPhase::trigger(){
|
int TriggerAtPhase::trigger(){
|
||||||
GameObserver * g = GameObserver::GetInstance();
|
GameObserver * g = GameObserver::GetInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user