From e8cb7dcfa23e8f9b6f077e9f3150ff62016a591e Mon Sep 17 00:00:00 2001 From: Foereaper Date: Sat, 14 Oct 2023 23:50:18 +0200 Subject: [PATCH] Disable new methods on Cata for now --- TrinityCore/GroupMethods.h | 12 ++++++++++++ TrinityCore/PlayerMethods.h | 20 ++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/TrinityCore/GroupMethods.h b/TrinityCore/GroupMethods.h index d6d93b20d6..33f4a08dd6 100644 --- a/TrinityCore/GroupMethods.h +++ b/TrinityCore/GroupMethods.h @@ -262,12 +262,14 @@ namespace LuaGroup * @param ObjectGuid guid : guid of the player * @return uint8 flags */ +#ifndef CATA int GetMemberFlags(lua_State* L, Group* group) { ObjectGuid guid = Eluna::CHECKVAL(L, 2); Eluna::Push(L, group->GetMemberFlags(guid)); return 1; } +#endif /** * Sets the leader of this [Group] @@ -411,6 +413,7 @@ namespace LuaGroup * @param bool apply : add the `flag` if `true`, remove the `flag` otherwise * @param [GroupMemberFlags] flag : the flag to set or unset */ +#ifndef CATA int SetMemberFlag(lua_State* L, Group* group) { ObjectGuid target = Eluna::CHECKVAL(L, 2); @@ -420,6 +423,7 @@ namespace LuaGroup group->SetGroupMemberFlag(target, apply, flag); return 0; } +#endif ElunaRegister GroupMethods[] = { @@ -430,13 +434,21 @@ namespace LuaGroup { "GetMemberGroup", &LuaGroup::GetMemberGroup }, { "GetMemberGUID", &LuaGroup::GetMemberGUID }, { "GetMembersCount", &LuaGroup::GetMembersCount }, +#ifndef CATA { "GetMemberFlags", &LuaGroup::GetMemberFlags }, +#else + { "GetMemberFlags", nullptr }, +#endif // Setters { "SetLeader", &LuaGroup::SetLeader }, { "SetMembersGroup", &LuaGroup::SetMembersGroup }, { "SetTargetIcon", &LuaGroup::SetTargetIcon }, +#ifndef CATA { "SetMemberFlag", &LuaGroup::SetMemberFlag }, +#else + { "SetMemberFlag", nullptr }, +#endif // Boolean { "IsLeader", &LuaGroup::IsLeader }, diff --git a/TrinityCore/PlayerMethods.h b/TrinityCore/PlayerMethods.h index 4148f1da4a..3f2cef1c84 100644 --- a/TrinityCore/PlayerMethods.h +++ b/TrinityCore/PlayerMethods.h @@ -373,6 +373,7 @@ namespace LuaPlayer return 1; } +#ifndef CATA /** * Returns 'true' if the [Player] satisfies all requirements to complete the repeatable quest entry. * @@ -410,6 +411,7 @@ namespace LuaPlayer return 1; } +#endif /** * Returns 'true' if the [Player] is a part of the Horde faction, 'false' otherwise. @@ -1546,6 +1548,7 @@ namespace LuaPlayer return 1; } +#ifndef CATA /** * Returns the amount of mails in the [Player]s mailbox * @@ -1578,7 +1581,8 @@ namespace LuaPlayer Eluna::Push(L, player->GetXPForNextLevel()); return 1; } - +#endif + /** * Locks the player controls and disallows all movement and casting. * @@ -3877,12 +3881,15 @@ namespace LuaPlayer { "GetQuestRewardStatus", &LuaPlayer::GetQuestRewardStatus }, #ifndef CATA { "GetShieldBlockValue", &LuaPlayer::GetShieldBlockValue }, -#else - { "GetShieldBlockValue", nullptr }, -#endif { "GetMailCount", &LuaPlayer::GetMailCount }, { "GetXP", &LuaPlayer::GetXP }, { "GetXPForNextLevel", &LuaPlayer::GetXPForNextLevel }, +#else + { "GetShieldBlockValue", nullptr }, + { "GetMailCount", nullptr }, + { "GetXP", nullptr }, + { "GetXPForNextLevel", nullptr }, +#endif // Setters #ifndef CATA @@ -3991,8 +3998,13 @@ namespace LuaPlayer { "CanFly", &LuaPlayer::CanFly }, { "IsMoving", &LuaPlayer::IsMoving }, { "IsFlying", &LuaPlayer::IsFlying }, +#ifndef CATA { "CanCompleteRepeatableQuest", &LuaPlayer::CanCompleteRepeatableQuest }, { "CanRewardQuest", &LuaPlayer::CanRewardQuest }, +#elif + { "CanCompleteRepeatableQuest", nullptr }, + { "CanRewardQuest", nullptr }, +#endif // Gossip { "GossipMenuAddItem", &LuaPlayer::GossipMenuAddItem },