mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Fix is_health_initialized variable not being set to true
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user