mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
[CORE] guild safety check only when two side guild interaction is disabled
This commit is contained in:
@@ -2006,7 +2006,7 @@ void WorldSession::HandleCharFactionOrRaceChange(WorldPacket& recvData)
|
|||||||
if (recvData.GetOpcode() == CMSG_CHAR_FACTION_CHANGE)
|
if (recvData.GetOpcode() == CMSG_CHAR_FACTION_CHANGE)
|
||||||
{
|
{
|
||||||
// if player is in a guild
|
// 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);
|
WorldPacket data(SMSG_CHAR_FACTION_CHANGE, 1);
|
||||||
data << (uint8)CHAR_CREATE_CHARACTER_IN_GUILD;
|
data << (uint8)CHAR_CREATE_CHARACTER_IN_GUILD;
|
||||||
|
|||||||
Reference in New Issue
Block a user