#include "PartyLayout.h"
#include "states/SelectMoveAction.h"
#include "states/PerformAttacks.h"
+#include "states/VictoryState.h"
#include "../app/Application.h"
#include "../app/Input.h"
#include "../common/GameState.h"
return;
}
if (battle.Victory()) {
- Ctrl().PopState();
+ if (alreadyPushed) {
+ Ctrl().PopState();
+ } else {
+ Ctrl().PushState(new VictoryState(&battle, this));
+ alreadyPushed = true;
+ }
return;
}
if (battle.Defeat()) {