From 9464b5e8ccc4c939cec278e4997b1418e8da12b8 Mon Sep 17 00:00:00 2001 From: Bast Date: Sat, 11 Jul 2020 00:52:43 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A9quilibrage=20fight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/Fight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Fight.js b/src/core/Fight.js index 9b0cad633..a7a5f5a7b 100644 --- a/src/core/Fight.js +++ b/src/core/Fight.js @@ -543,7 +543,7 @@ class Fight { await this.nextTurn(); return; } - if ((defender.speed < attacker.speed && success <= 0.1) || (defender.speed > attacker.speed && success < 0.5)) { + if ((defender.speed < attacker.speed * 0.8 && success <= 0.1) || (defender.speed > attacker.speed * 0.8 && success < 0.5)) { far.damage = Math.round(2.0 * defender.power / 3.0); far.fullSuccess = true; } else {