Core/Player: Don't allow to join bg/lfg when frozen by a GM

This commit is contained in:
jackpoz committed 2015-06-03 22:08:01 +02:00
1 parent d94c5228a2
commit 239f0b4ad0
3 files changed
+17

No files matched your search

+3
View File
@@ -1857,6 +1857,9 @@ GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const*
// check if someone in party is using dungeon system
if (member->isUsingLfg())
return ERR_LFG_CANT_USE_BATTLEGROUND;
// check Freeze debuff
if (member->HasAura(9454))
return ERR_BATTLEGROUND_JOIN_FAILED;
}
// only check for MinPlayerCount since MinPlayerCount == MaxPlayerCount for arenas...