Fix is_health_initialized variable not being set to true

This commit is contained in:
GreenComfyTea committed 2023-08-08 12:24:33 +03:00
1 parent 6b8809b79e
commit e1d3754733
2 files changed
+4

No files matched your search

@@ -620,6 +620,8 @@ function this.update_health(enemy, monster)
monster.capture_percentage = capture_health / max_health; monster.capture_percentage = capture_health / max_health;
end end
monster.is_health_initialized = true;
return physical_param; return physical_param;
end end
@@ -237,6 +237,8 @@ function this.update_health(enemy, monster)
if max_health ~= 0 then if max_health ~= 0 then
monster.health_percentage = health / max_health; monster.health_percentage = health / max_health;
end end
monster.is_health_initialized = true;
end end
function this.draw(monster, cached_config, position_on_screen, opacity_scale) function this.draw(monster, cached_config, position_on_screen, opacity_scale)