mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 20:38:03 -08:00
Fix a bug when autotarget was trying to target dead monster causing all large monster UI to not work
This commit is contained in:
@@ -291,8 +291,8 @@ if debug.enabled then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if xy ~= "" then
|
if xy ~= "" then
|
||||||
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 6, 11, 0xFF000000);
|
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 6, 31, 0xFF000000);
|
||||||
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 5, 10, 0xFFFFFFFF);
|
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 5, 30, 0xFFFFFFFF);
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
end
|
end
|
||||||
@@ -303,8 +303,8 @@ if debug.enabled then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if xy ~= "" then
|
if xy ~= "" then
|
||||||
draw.text("xy:\n" .. tostring(xy), 6, 11, 0xFF000000);
|
draw.text("xy:\n" .. tostring(xy), 6, 31, 0xFF000000);
|
||||||
draw.text("xy:\n" .. tostring(xy), 5, 10, 0xFFFFFFFF);
|
draw.text("xy:\n" .. tostring(xy), 5, 30, 0xFFFFFFFF);
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ function large_monster_UI.draw(dynamic_enabled, static_enabled, highlighted_enab
|
|||||||
if highlighted_enabled then
|
if highlighted_enabled then
|
||||||
large_monster_UI.draw_highlighted(highlighted_monster, cached_config);
|
large_monster_UI.draw_highlighted(highlighted_monster, cached_config);
|
||||||
end
|
end
|
||||||
|
|
||||||
if static_enabled then
|
if static_enabled then
|
||||||
large_monster_UI.draw_static(displayed_monsters, highlighted_monster, cached_config);
|
large_monster_UI.draw_static(displayed_monsters, highlighted_monster, cached_config);
|
||||||
end
|
end
|
||||||
@@ -281,7 +280,7 @@ function large_monster_UI.draw_highlighted(monster, cached_config)
|
|||||||
|
|
||||||
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
||||||
|
|
||||||
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
if monster.dead_or_captured then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user