75 static constexpr std::string_view
WaterSpoutPipe =
"arena_dalaran_sewers_water_spout_pipe";
76 static constexpr std::string_view
WaterSpoutCenter =
"arena_dalaran_sewers_water_spout_center";
109 go->UseDoorOrButton();
115 go->UseDoorOrButton();
122 go->ResetDoorOrButton();
124 go->ResetDoorOrButton();
148 door->UseDoorOrButton();
149 door->DespawnOrUnsummon(5s);
157 go->ResetDoorOrButton();
159 go->ResetDoorOrButton();
288 static constexpr float SpeedXY = 30.0f;
289 static constexpr float SpeedZ = 19.0f;
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
std::chrono::seconds Seconds
Seconds shorthand typedef.
std::vector< ObjectGuid > GuidVector
#define RegisterBattlegroundMapScript(script_name, mapId)
#define RegisterSpellScript(spell_script)
@ TRIGGERED_IGNORE_CAST_IN_PROGRESS
Will not check if a current cast is in progress.
@ TRIGGERED_DONT_REPORT_CAST_ERROR
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
#define SpellEffectFn(F, I, N)
void AddSC_arena_dalaran_sewers()
ObjectGuid const & GetGUID() const
Battleground * battleground
BattlegroundMap * battlegroundMap
virtual void OnUpdate(uint32 diff)
BattlegroundPlayerMap const & GetPlayers() const
BattlegroundStatus GetStatus() const
bool HasStringId(std::string_view id) const
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void CancelEvent(uint32 eventId)
GameObject * GetGameObject(ObjectGuid const &guid)
Creature * GetCreature(ObjectGuid const &guid)
Battleground * GetBattleground() const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & Update()
Update the scheduler to the current time.
void KnockbackFrom(Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool OnExit(Player *player, AreaTriggerEntry const *) override
static void Trigger(Player *player)
bool OnTrigger(Player *player, AreaTriggerEntry const *) override
void HandleDummy(SpellEffIndex) const
bool Validate(SpellInfo const *spellInfo) override
void HandleDummy(SpellEffIndex) const
static constexpr uint32 WaterSpout
static constexpr uint32 WaterfallOff
static constexpr uint32 WaterfallOn
static constexpr uint32 WaterfallWarning
static constexpr uint32 WaterfallKnockBack
static constexpr uint32 Waterfall
static constexpr uint32 Door02
static constexpr uint32 WaterCollision
static constexpr uint32 Door01
static constexpr uint32 DalaranSewers
static constexpr uint32 WarlockDemonicCircle
static constexpr uint32 DalaranSewersPetTeleport
static constexpr uint32 PipeFlushKnockbackSearchTrigger
static constexpr uint32 WaterSpout
static constexpr uint32 Flush
static constexpr std::string_view WaterSpoutCenter
static constexpr std::string_view WaterSpoutPipe
static constexpr Seconds WaterfallDuration
static constexpr Seconds WaterfallWarningDuration
static constexpr Milliseconds WaterfallKnockBack
static constexpr Seconds Waterfall
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
constexpr void GetPosition(float &x, float &y) const
void OnGameObjectCreate(GameObject *gameobject) override
GuidVector _waterSpoutEntranceGUIDs
ObjectGuid _waterSpoutCenterGUID
void OnUpdate(uint32 diff) override
ObjectGuid _waterfallGUID
void OnCreatureCreate(Creature *creature) override
arena_dalaran_sewers(BattlegroundMap *map)
ObjectGuid _waterCollisionGUID