Fix is_health_initialized variable not being set to true

This commit is contained in:
GreenComfyTea
2023-08-08 12:24:33 +03:00
parent 6b8809b79e
commit e1d3754733
2 changed files with 4 additions and 0 deletions

View File

@@ -620,6 +620,8 @@ function this.update_health(enemy, monster)
monster.capture_percentage = capture_health / max_health;
end
monster.is_health_initialized = true;
return physical_param;
end

View File

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