From 21de08baab0b18ab8a29c169caa3a99c1ef26b2a Mon Sep 17 00:00:00 2001 From: kadeshar Date: Sun, 14 Sep 2025 10:51:18 +0200 Subject: [PATCH] Fixed cross faction guilds not allowed by config (#1631) * - Fixed cross faction guilds not allowed by config * - Fixed doubled method bug * - Restored deleted method --- src/strategy/actions/GuildManagementActions.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/strategy/actions/GuildManagementActions.cpp b/src/strategy/actions/GuildManagementActions.cpp index 591b5252..c5619095 100644 --- a/src/strategy/actions/GuildManagementActions.cpp +++ b/src/strategy/actions/GuildManagementActions.cpp @@ -90,7 +90,11 @@ void GuildInviteAction::SendPacket(WorldPacket packet) bot->GetSession()->HandleGuildInviteOpcode(data); } -bool GuildInviteAction::PlayerIsValid(Player* member) { return !member->GetGuildId(); } +bool GuildInviteAction::PlayerIsValid(Player* member) +{ + return !member->GetGuildId() && (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) || + (bot->GetTeamId() == member->GetTeamId())); +} bool GuildPromoteAction::isUseful() {