Skip to content

Commit

Permalink
Add Group OnMemberAccept hook
Browse files Browse the repository at this point in the history
-Update Eluna submodule

Co-Authored-By: Foereaper <[email protected]>
  • Loading branch information
Niam5 and Foereaper committed Oct 14, 2023
1 parent 7fb3f41 commit b9e3c0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/game/Groups/GroupHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include "Social/SocialMgr.h"
#include "Util/Util.h"
#include "Anticheat/Anticheat.hpp"
#ifdef BUILD_ELUNA
#include "LuaEngine/LuaEngine.h"
#endif

/* differeces from off:
-you can uninvite yourself - is is useful
Expand Down Expand Up @@ -208,6 +211,11 @@ void WorldSession::HandleGroupAcceptOpcode(WorldPacket& /*recv_data*/)
return;
}

#ifdef BUILD_ELUNA
if (!sEluna->OnMemberAccept(group, GetPlayer()))
return;
#endif

Player* leader = sObjectMgr.GetPlayer(group->GetLeaderGuid());

// forming a new group, create it
Expand Down
2 changes: 1 addition & 1 deletion src/game/LuaEngine

0 comments on commit b9e3c0b

Please sign in to comment.