Core/Channels: Implemented AreaFlags::NoLocalDefenseChannel

This commit is contained in:
luis
2026-11-18 12:16:20 -03:00
parent d6a7b38c6c
commit 6d8f739a12
@@ -4968,6 +4968,9 @@ bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, Area
if (channel->GetFlags().HasFlag(ChatChannelFlags::ZoneBased) && zone->GetFlags().HasFlag(AreaFlags::NoChatChannels))
return false;
if (channel->GetFlags().HasFlag(ChatChannelFlags::ZoneAttackAlerts) && zone->GetFlags().HasFlag(AreaFlags::NoLocalDefenseChannel))
return false;
if (channel->GetFlags().HasFlag(ChatChannelFlags::OnlyInCities) && !zone->GetFlags().HasFlag(AreaFlags::AllowTradeChannel))
return false;