#include "BattlegroundSpamProtect.h"
◆ CanAnnounce()
59{
61
62
64 {
65 return false;
66 }
67
68 if (bg)
69 {
70
72 if (limitQueueMinLevel && minLevel >= limitQueueMinLevel)
73 {
74
76
78 {
79 return false;
80 }
81 }
82 }
83
85 return true;
86}
@ BATTLEGROUND_WS
Definition: SharedDefines.h:3482
@ BATTLEGROUND_RB
Definition: SharedDefines.h:3493
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_LEVEL
Definition: IWorld.h:320
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_PLAYERS
Definition: IWorld.h:321
#define sWorld
Definition: World.h:443
bool IsCorrectDelay(ObjectGuid guid)
Definition: BattlegroundSpamProtect.cpp:45
void AddTime(ObjectGuid guid)
Definition: BattlegroundSpamProtect.cpp:29
BattlegroundTypeId GetBgTypeID(bool GetRandom=false) const
Definition: Battleground.h:329
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
Definition: ObjectGuid.h:118
References BATTLEGROUND_RB, BATTLEGROUND_WS, CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_LEVEL, CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_PLAYERS, Battleground::GetBgTypeID(), Object::GetGUID(), and sWorld.
◆ instance()
53{
56}
Definition: BattlegroundSpamProtect.h:27
static BGSpamProtect * instance()
Definition: BattlegroundSpamProtect.cpp:52
References instance().
Referenced by instance().