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.
This commit is contained in:
Kelsi 2026-03-23 03:22:30 -07:00
parent 7927d98e79
commit 6c873622dc

View file

@ -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);