mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
feat(Core/Chat): Add config option to allow use LFG anywhere not only in city (#1586)
This commit is contained in:
@@ -5615,7 +5615,11 @@ void Player::RepopAtGraveyard()
|
||||
}
|
||||
|
||||
bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone)
|
||||
{
|
||||
{
|
||||
// Player can join LFG anywhere
|
||||
if (channel->flags & CHANNEL_DBC_FLAG_LFG && sWorld->getBoolConfig(CONFIG_LFG_LOCATION_ALL))
|
||||
return true;
|
||||
|
||||
if (channel->flags & CHANNEL_DBC_FLAG_ZONE_DEP && zone->flags & AREA_FLAG_ARENA_INSTANCE)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user