Skip to content

Instantly share code, notes, and snippets.

@Demonid
Created March 16, 2015 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Demonid/37d82d1abdbde25e3a6f to your computer and use it in GitHub Desktop.
Save Demonid/37d82d1abdbde25e3a6f to your computer and use it in GitHub Desktop.
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 161fca4..bf408da 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -5538,6 +5538,10 @@ void Player::RepopAtGraveyard()
bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone)
{
+ // Player can join LFG anywhere
+ if (channel->flags & CHANNEL_DBC_FLAG_LFG)
+ return true;
+
if (channel->flags & CHANNEL_DBC_FLAG_ZONE_DEP && zone->flags & AREA_FLAG_ARENA_INSTANCE)
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment