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() {