mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2026-01-25 13:51:34 -08:00
fix(Core/Guild): disable invite if players diff factions (#5519)
This commit is contained in:
parent
e29acf44d0
commit
e13567cd80
1 changed files with 1 additions and 1 deletions
|
|
@ -1517,7 +1517,7 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
|||
if (pInvitee->GetSocial()->HasIgnore(player->GetGUID()))
|
||||
return;
|
||||
|
||||
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) && pInvitee->GetTeamId() != player->GetTeamId())
|
||||
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) && pInvitee->GetTeamId(true) != player->GetTeamId(true))
|
||||
{
|
||||
SendCommandResult(session, GUILD_COMMAND_INVITE, ERR_GUILD_NOT_ALLIED, name);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue