mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-10-28 20:14:07 -07:00
Fix is_health_initialized variable not being set to true
This commit is contained in:
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;
|
||||
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