Erwan
- Fix issue 42
This commit is contained in:
@@ -104,7 +104,14 @@ void GameObserver::nextGamePhase(){
|
||||
if (currentGamePhase == Constants::MTG_PHASE_BEFORE_BEGIN){
|
||||
cleanupPhase();
|
||||
currentPlayer->canPutLandsIntoPlay = 1;
|
||||
mLayers->actionLayer()->cleanGarbage(); //clean abilities history for this turn;
|
||||
mLayers->stackLayer()->garbageCollect(); //clean stack history for this turn;
|
||||
mLayers->actionLayer()->Update(0);
|
||||
for (int i=0; i < 2; i++){
|
||||
delete (players[i]->game->garbage);
|
||||
players[i]->game->garbage = NEW MTGGameZone();
|
||||
players[i]->game->garbage->setOwner(players[i]);
|
||||
}
|
||||
combatStep = BLOCKERS;
|
||||
return nextGamePhase();
|
||||
}
|
||||
@@ -117,14 +124,7 @@ void GameObserver::nextGamePhase(){
|
||||
//Auto Hand cleaning, in case the player didn't do it himself
|
||||
while(currentPlayer->game->hand->nb_cards > 7)
|
||||
currentPlayer->game->putInGraveyard(currentPlayer->game->hand->cards[0]);
|
||||
mLayers->actionLayer()->cleanGarbage(); //clean abilities history for this turn;
|
||||
mLayers->stackLayer()->garbageCollect(); //clean stack history for this turn;
|
||||
mLayers->actionLayer()->Update(0);
|
||||
for (int i=0; i < 2; i++){
|
||||
delete (players[i]->game->garbage);
|
||||
players[i]->game->garbage = NEW MTGGameZone();
|
||||
players[i]->game->garbage->setOwner(players[i]);
|
||||
}
|
||||
return nextGamePhase();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user