Skip to content

Commit

Permalink
Revert "Update ElunaLuaEngine_SC.cpp - drop hook completely"
Browse files Browse the repository at this point in the history
This reverts commit 0cc2689.
  • Loading branch information
sudlud committed Jul 3, 2024
1 parent 0cc2689 commit b1aaaec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ElunaLuaEngine_SC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ class Eluna_AllMapScript : public AllMapScript
public:
Eluna_AllMapScript() : AllMapScript("Eluna_AllMapScript") { }

void OnBeforeCreateInstanceScript(InstanceMap* instanceMap, InstanceScript** instanceData, bool /*load*/, std::string /*data*/, uint32 /*completedEncounterMask*/) override
{
if (instanceData)
*instanceData = sEluna->GetInstanceData(instanceMap);
}

void OnDestroyInstance(MapInstanced* /*mapInstanced*/, Map* map) override
{
sEluna->FreeInstanceId(map->GetInstanceId());
Expand Down

0 comments on commit b1aaaec

Please sign in to comment.