#include "BattlegroundSpamProtect.h"
◆ CanAnnounce()
59{
61
62
63 if (!IsCorrectDelay(guid))
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
84 AddTime(guid);
85 return true;
86}
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_LEVEL
Definition IWorld.h:319
@ CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_LIMIT_MIN_PLAYERS
Definition IWorld.h:320
@ BATTLEGROUND_WS
Definition SharedDefines.h:3482
@ BATTLEGROUND_RB
Definition SharedDefines.h:3493
BattlegroundTypeId GetBgTypeID(bool GetRandom=false) const
Definition Battleground.h:330
Definition ObjectGuid.h:118
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:112
#define sWorld
Definition World.h:363
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().
The documentation for this class was generated from the following files: