161 if (player->GetZoneId() ==
ZONE_DALARAN && !player->IsFlying() && !player->IsMounted() && !player->IsGameMaster())
162 playerList.push_back(player);
167 if (PlayerInDalaranList.empty())
191 std::vector<Player*> PlayerInDalaranList;
195 if (PlayerInDalaranList.empty() ||
urand(1, 100) > PlayerInDalaranList.size())
204 float dist =
frand(10.0f, 30.0f);
205 float angle =
frand(0.0f, 1.0f) *
M_PI * 2.0f;
206 player->MovePositionToFirstCollision(pos, dist, angle);
@ SPELL_WARL_DEMONIC_CIRCLE
@ BG_DS_PIPE_KNOCKBACK_TOTAL_COUNT
constexpr uint32 BG_DS_DATA_PIPE_KNOCKBACK_COUNT
SQLTransaction< CharacterDatabaseConnection > CharacterDatabaseTransaction
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
std::chrono::seconds Seconds
Seconds shorthand typedef.
float frand(float min, float max)
int32 irand(int32 min, int32 max)
uint32 urand(uint32 min, uint32 max)
#define RegisterCreatureAI(ai_name)
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
@ EMOTE_ONESHOT_LAUGH_NO_SHEATHE
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void SendMailTo(CharacterDatabaseTransaction trans, MailReceiver const &receiver, MailSender const &sender, MailCheckMask checked=MAIL_CHECK_MASK_NONE, uint32 deliver_delay=0)
Player * GetPlayer(ObjectGuid const &guid)
PlayerList const & GetPlayers() const
void MoveRandom(float wanderDistance=0.0f, Optional< Milliseconds > duration={}, MovementSlot slot=MOTION_SLOT_DEFAULT)
static Player * ToPlayer(Object *o)
Battleground * GetBattleground() const
bool IsGameMaster() const
bool IsBeingTeleported() const
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
bool isInBackInMap(Unit const *target, float distance, float arc=float(M_PI)) const
MotionMaster * GetMotionMaster()
void NearTeleportTo(Position const &pos, bool casting=false)
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
void HandleEmoteCommand(Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void setActive(bool isActiveObject)
void AddObjectToRemoveList()
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
bool OnExit(Player *player, AreaTriggerEntry const *) override
void Trigger(Player *player) const
bool OnTrigger(Player *player, AreaTriggerEntry const *) override
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr void GetPosition(float &x, float &y) const
constexpr float GetOrientation() const
constexpr float GetPositionZ() const
npc_mageguard_dalaran(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32) override
void AttackStart(Unit *) override
== Triggered Actions Requested ==================
void MoveInLineOfSight(Unit *who) override
void SendMailToPlayer(Player *player) const
static Player * SelectTargetInDalaran(std::vector< Player * > &PlayerInDalaranList)
void GetPlayersInDalaran(std::vector< Player * > &playerList) const
npc_minigob_manabonk(Creature *creature)
void UpdateAI(uint32 diff) override
@ SPELL_SUNREAVER_DISGUISE_MALE
@ SPELL_SILVER_COVENANT_DISGUISE_FEMALE
@ SPELL_SILVER_COVENANT_DISGUISE_MALE
@ SPELL_SUNREAVER_DISGUISE_FEMALE
@ NPC_SILVER_COVENANT_GUARDIAN_MAGE
@ NPC_SUNREAVER_GUARDIAN_MAGE