From 8a395088fdaee48b8a76fc98913de5cc63d805bd Mon Sep 17 00:00:00 2001 From: bluelightzero Date: Thu, 9 Apr 2026 03:59:25 +0100 Subject: [PATCH] Fix Hyperspeed when taking damage underwater with faster-swimming.lua (#1186) --- mods/faster-swimming.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/faster-swimming.lua b/mods/faster-swimming.lua index 7b76cb9ef..cd0d65359 100644 --- a/mods/faster-swimming.lua +++ b/mods/faster-swimming.lua @@ -8,7 +8,12 @@ function mario_before_phys_step(m) -- faster swimming if (m.action & ACT_FLAG_SWIMMING) ~= 0 then hScale = hScale * 2.0 - if m.action ~= ACT_WATER_PLUNGE then + if + m.action ~= ACT_WATER_PLUNGE + and m.action ~= ACT_BACKWARD_WATER_KB + and m.action ~= ACT_FORWARD_WATER_KB + and m.action ~= ACT_DROWNING + then vScale = vScale * 2.0 end end