From 28f8d6ae482a6bb4307885f0aa93ad863eff8006 Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Fri, 30 Dec 2022 10:47:39 +0100 Subject: [PATCH] fix: call the group OnCreate hook (#81) --- src/ElunaLuaEngine_SC.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ElunaLuaEngine_SC.cpp b/src/ElunaLuaEngine_SC.cpp index 224757f..01a391b 100644 --- a/src/ElunaLuaEngine_SC.cpp +++ b/src/ElunaLuaEngine_SC.cpp @@ -407,6 +407,11 @@ public: { sEluna->OnDisband(group); } + + void OnCreate(Group* group, Player* leader) override + { + sEluna->OnCreate(group, leader->GetGUID(), group->GetGroupType()); + } }; class Eluna_GuildScript : public GuildScript