From 6348940dc6262f729bfb3290c4514401fd5fe27b Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Wed, 8 Dec 2010 14:32:12 +0000 Subject: [PATCH] added a automatic move forward if trigger step if playmode == test suite...this will still trigger the steps actual functions and test that are using trigger step will require an extra "next" test that are not using trigger step for anything will not need the extra "next" --- projects/mtg/src/GameObserver.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/mtg/src/GameObserver.cpp b/projects/mtg/src/GameObserver.cpp index c24f6d674..2ff35ca4c 100644 --- a/projects/mtg/src/GameObserver.cpp +++ b/projects/mtg/src/GameObserver.cpp @@ -379,6 +379,12 @@ void GameObserver::Update(float dt) { mLayers->actionLayer()->Update(0); } + + if(player->playMode +== Player::MODE_TEST_SUITE && currentGamePhase == Constants::MTG_PHASE_COMBATBLOCKERS && TRIGGERS == combatStep) + { + nextCombatStep(); + } stateEffects(); oldGamePhase = currentGamePhase; @@ -401,6 +407,7 @@ void GameObserver::Update(float dt) == Constants::MTG_PHASE_COMBATDAMAGE)) userRequestNextGamePhase(); } + } //applies damage to creatures after updates