From a2914cc291b12208cfc3065f00ffdae26f2fa2ac Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 27 Dec 2020 17:32:55 -0700 Subject: [PATCH] In Lynx update mode, only tick an actor's cooldown after an extra move if that move succeeded --- js/game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 7cd2a81..358e306 100644 --- a/js/game.js +++ b/js/game.js @@ -1363,7 +1363,9 @@ export class Level extends LevelInterface { attempt_out_of_turn_step(actor, direction) { if (this.compat.use_lynx_loop) { let success = this._do_actor_movement(actor, direction); - this._do_actor_cooldown(actor, this.compat.emulate_60fps ? 1 : 3); + if (success) { + this._do_actor_cooldown(actor, this.compat.emulate_60fps ? 1 : 3); + } return success; }