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 31fd967 commit d06fed8
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 @@ -33,6 +33,9 @@
#include "Server/DB2Stores.h"
#include "Entities/Vehicle.h"
#include "Maps/TransportSystem.h"
#ifdef BUILD_ELUNA
#include "LuaEngine/LuaEngine.h"
#endif

/* differeces from off:
-you can uninvite yourself - is is useful
Expand Down Expand Up @@ -257,6 +260,11 @@ void WorldSession::HandleGroupInviteResponseOpcode(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 d06fed8

Please sign in to comment.