From d3c382ccc7869d522ea28e2e693dbd9c8e259f6d Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 10 Nov 2021 19:02:45 -0300 Subject: [PATCH 1/5] feat(GroupMethods): Expose IsLFGGroup() --- GroupMethods.h | 12 ++++++++++++ LuaFunctions.cpp | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/GroupMethods.h b/GroupMethods.h index 27ac9b9..766aed7 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -36,6 +36,18 @@ namespace LuaGroup return 1; } + /** + * Returns 'true' if the [Player] is in a LFG group + * + * @param ObjectGuid guid : guid of a possible player + * @return bool isLFGGroup + */ + int IsLFGGroup(lua_State* L, Group* group) + { + Eluna::Push(L, group->isLFGGroup()); + return 1; + } + /** * Returns 'true' if the [Group] is a raid [Group] * diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index f7cd08b..a4fbeb0 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -1083,7 +1083,7 @@ ElunaRegister GroupMethods[] = { "RemoveMember", &LuaGroup::RemoveMember }, { "Disband", &LuaGroup::Disband }, { "IsFull", &LuaGroup::IsFull }, - // {"IsLFGGroup", &LuaGroup::IsLFGGroup}, // :IsLFGGroup() - UNDOCUMENTED - Returns true if the group is an LFG group + { "IsLFGGroup", &LuaGroup::IsLFGGroup }, { "IsRaidGroup", &LuaGroup::IsRaidGroup }, { "IsBGGroup", &LuaGroup::IsBGGroup }, // {"IsBFGroup", &LuaGroup::IsBFGroup}, // :IsBFGroup() - UNDOCUMENTED - Returns true if the group is a battlefield group From 70bce937b7713169059dfc50d4229c82ddcdd182 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 10 Nov 2021 19:06:07 -0300 Subject: [PATCH 2/5] update description --- GroupMethods.h | 1 - 1 file changed, 1 deletion(-) diff --git a/GroupMethods.h b/GroupMethods.h index 766aed7..b6fa522 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -39,7 +39,6 @@ namespace LuaGroup /** * Returns 'true' if the [Player] is in a LFG group * - * @param ObjectGuid guid : guid of a possible player * @return bool isLFGGroup */ int IsLFGGroup(lua_State* L, Group* group) From 3b2611f918e998c6768b5177eeaeca3c1f6eb16a Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 10 Nov 2021 19:02:45 -0300 Subject: [PATCH 3/5] feat(GroupMethods): Expose IsLFGGroup() --- GroupMethods.h | 1 + 1 file changed, 1 insertion(+) diff --git a/GroupMethods.h b/GroupMethods.h index b6fa522..766aed7 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -39,6 +39,7 @@ namespace LuaGroup /** * Returns 'true' if the [Player] is in a LFG group * + * @param ObjectGuid guid : guid of a possible player * @return bool isLFGGroup */ int IsLFGGroup(lua_State* L, Group* group) From 48a0a61501b190910831e503ef0cd114f2751086 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 10 Nov 2021 19:06:07 -0300 Subject: [PATCH 4/5] update description --- GroupMethods.h | 1 - 1 file changed, 1 deletion(-) diff --git a/GroupMethods.h b/GroupMethods.h index 766aed7..b6fa522 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -39,7 +39,6 @@ namespace LuaGroup /** * Returns 'true' if the [Player] is in a LFG group * - * @param ObjectGuid guid : guid of a possible player * @return bool isLFGGroup */ int IsLFGGroup(lua_State* L, Group* group) From 00a7b4919ed0518176ecca69fd806823a13858ee Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Thu, 11 Nov 2021 12:09:13 -0300 Subject: [PATCH 5/5] Update GroupMethods.h --- GroupMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GroupMethods.h b/GroupMethods.h index b6fa522..853b76b 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -37,7 +37,7 @@ namespace LuaGroup } /** - * Returns 'true' if the [Player] is in a LFG group + * Returns 'true' if the [Group] is a LFG group * * @return bool isLFGGroup */