mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:09:25 +08:00
fix: call original WorldMap.UpdateVisionFlag when OPSI_NO_MAP_FOG disabled
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user