Daddy32 - Fix for issue 196.

This commit is contained in:
d32.wagic
2009-11-18 20:37:42 +00:00
parent ad5aa10ed6
commit 46e21fb94d
2 changed files with 4 additions and 4 deletions
-2
View File
@@ -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;
+2
View File
@@ -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();