summaryrefslogtreecommitdiff
path: root/resources/js/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/game.js')
-rw-r--r--resources/js/game.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/js/game.js b/resources/js/game.js
index 663e6b0..0ba5a8d 100644
--- a/resources/js/game.js
+++ b/resources/js/game.js
@@ -954,7 +954,7 @@ const Game = {
};
// Game click bindings
-UI.elements.nextTrainer.addEventListener('click', Game.encounterTrainer);
-UI.elements.battleOpponent.addEventListener('click', Game.battleClick);
-UI.elements.techniques.addEventListener('click', Game.techniqueClick);
-UI.elements.menuCatch.addEventListener('click', Game.catchMonster);
+UI.elements.nextTrainer.addEventListener('click', UI.createEventListener(Game.encounterTrainer));
+UI.elements.battleOpponent.addEventListener('click', UI.createEventListener(Game.battleClick));
+UI.elements.techniques.addEventListener('click', UI.createEventListener(Game.techniqueClick));
+UI.elements.menuCatch.addEventListener('click', UI.createEventListener(Game.catchMonster));