Fix Hyperspeed when taking damage underwater with faster-swimming.lua (#1186)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run

This commit is contained in:
bluelightzero 2026-04-09 03:59:25 +01:00 committed by GitHub
parent e22d85b119
commit 8a395088fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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