Slight tweak to arena's prevent water heal
This commit is contained in:
parent
d1f8665952
commit
c3891efb41
|
@ -386,7 +386,7 @@ function mario_local_update(m)
|
||||||
|
|
||||||
-- prevent water heal
|
-- prevent water heal
|
||||||
if m.health >= 0x100 then
|
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.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
|
if ((m.pos.y >= (m.waterLevel - 140)) and not (m.area.terrainType & TERRAIN_SNOW ~= 0)) then
|
||||||
m.health = m.health - 0x1A
|
m.health = m.health - 0x1A
|
||||||
|
|
Loading…
Reference in New Issue