[CORE] guild safety check only when two side guild interaction is disabled
This commit is contained in:
parent
6773cd3128
commit
7247f2a5ee
1 changed files with 1 additions and 1 deletions
|
|
@ -2006,7 +2006,7 @@ void WorldSession::HandleCharFactionOrRaceChange(WorldPacket& recvData)
|
|||
if (recvData.GetOpcode() == CMSG_CHAR_FACTION_CHANGE)
|
||||
{
|
||||
// if player is in a guild
|
||||
if (playerData->guildId)
|
||||
if (playerData->guildId && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD))
|
||||
{
|
||||
WorldPacket data(SMSG_CHAR_FACTION_CHANGE, 1);
|
||||
data << (uint8)CHAR_CREATE_CHARACTER_IN_GUILD;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue