From 6c873622dc6686d43d197cd10fdb98de36d9992d Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 23 Mar 2026 03:22:30 -0700 Subject: [PATCH] feat: add party management (InviteUnit, UninviteUnit, LeaveParty) InviteUnit(name) invites a player to the group. UninviteUnit(name) removes a player from the group. LeaveParty() leaves the current party/raid. Backed by existing inviteToGroup, uninvitePlayer, leaveGroup methods. --- src/addons/lua_engine.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/addons/lua_engine.cpp b/src/addons/lua_engine.cpp index 291b759d..9ee134dd 100644 --- a/src/addons/lua_engine.cpp +++ b/src/addons/lua_engine.cpp @@ -5182,6 +5182,22 @@ void LuaEngine::registerCoreAPI() { if (gh) gh->requestPvpLog(); return 0; }}, + // --- Party/Group Management --- + {"InviteUnit", [](lua_State* L) -> int { + auto* gh = getGameHandler(L); + if (gh) gh->inviteToGroup(luaL_checkstring(L, 1)); + return 0; + }}, + {"UninviteUnit", [](lua_State* L) -> int { + auto* gh = getGameHandler(L); + if (gh) gh->uninvitePlayer(luaL_checkstring(L, 1)); + return 0; + }}, + {"LeaveParty", [](lua_State* L) -> int { + auto* gh = getGameHandler(L); + if (gh) gh->leaveGroup(); + return 0; + }}, // --- Guild Management --- {"GuildInvite", [](lua_State* L) -> int { auto* gh = getGameHandler(L);