From 0a1334c3a9815a982ac4d0a997700e0181933ca0 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 31 May 2023 22:08:18 -0700 Subject: [PATCH] Slight tweak to arena's prevent water heal --- mods/arena/arena-player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/arena/arena-player.lua b/mods/arena/arena-player.lua index b2aa94d7..a5c616c9 100644 --- a/mods/arena/arena-player.lua +++ b/mods/arena/arena-player.lua @@ -386,7 +386,7 @@ function mario_local_update(m) -- prevent water heal if m.health >= 0x100 then - if ((m.healCounter or m.hurtCounter) == 0) then + if m.healthCounter == 0 and m.hurtCounter == 0 then if ((m.action & ACT_FLAG_SWIMMING ~= 0) and (m.action & ACT_FLAG_INTANGIBLE == 0)) then if ((m.pos.y >= (m.waterLevel - 140)) and not (m.area.terrainType & TERRAIN_SNOW ~= 0)) then m.health = m.health - 0x1A