#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}
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_LEVEL
Definition: IWorld.h:317
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_PLAYERS
Definition: IWorld.h:318
@ BATTLEGROUND_WS
Definition: SharedDefines.h:3454
@ BATTLEGROUND_RB
Definition: SharedDefines.h:3465
#define sWorld
Definition: World.h:451
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:319
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
Definition: ObjectGuid.h:120
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().