aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui_action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_action.cpp')
-rw-r--r--src/ui_action.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui_action.cpp b/src/ui_action.cpp
index 960b222..ebdc705 100644
--- a/src/ui_action.cpp
+++ b/src/ui_action.cpp
@@ -5,6 +5,7 @@
#define ACTION_EPILOUGE { actioning = false; actionHover = 0; }
extern World *currentWorld;
+extern Arena *arena;
extern Player *player;
extern bool inBattle;
@@ -115,14 +116,11 @@ void actionAttack(void)
if (m->type == MOBT) {
if (!inBattle && m != nullptr) {
- Arena *a = new Arena(currentWorld, player, Mobp(m));
- a->setStyle("");
- a->setBackground(WorldBGType::Forest);
- a->setBGM("assets/music/embark.wav");
+ arena->fight(currentWorld, player, Mobp(m));
ui::toggleWhiteFast();
ui::waitForCover();
- currentWorld = a;
+ currentWorld = arena;
ui::toggleWhiteFast();
}
} else {