Fixed cross faction guilds not allowed by config (#1631)

* - Fixed cross faction guilds not allowed by config

* - Fixed doubled method bug

* - Restored deleted method
This commit is contained in:
kadeshar
2025-09-14 10:51:18 +02:00
committed by GitHub
parent 20025b7dfa
commit 21de08baab

View File

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