1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 10:59:24 +08:00

fix: call original WorldMap.UpdateVisionFlag when OPSI_NO_MAP_FOG disabled

This commit is contained in:
0O0o0oOoO00
2025-11-02 12:28:34 +08:00
parent 1618ba434d
commit 2db1bb028d

View File

@@ -548,7 +548,7 @@ void Cracker::hook_all_lua_functions() {
// opsi_no_map_fog
m_state["WorldMap"]["UpdateVisionFlag"] = [this](sol::this_state L, Lua::VariadicArgs args) {
if (!IS_ENABLED(OPSI_NO_MAP_FOG)) {
m_original.WorldMap_CanAutoFight(L, args);
m_original.WorldMap_UpdateVisionFlag(L, args);
return;
}
auto new_args = std::vector<Lua::Object>();