mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user