104 door->UseDoorOrButton();
105 door->DespawnOrUnsummon(5s);
115 context.
Repeat(1min, 2min);
std::vector< ObjectGuid > GuidVector
uint32 urand(uint32 min, uint32 max)
#define RegisterBattlegroundMapScript(script_name, mapId)
#define RegisterCreatureAI(ai_name)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ 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_blades_edge_legion()
ObjectGuid const & GetGUID() const
BattlegroundMap * battlegroundMap
GameObject * GetGameObject(ObjectGuid const &guid)
Creature * GetCreature(ObjectGuid const &guid)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & Update()
Update the scheduler to the current time.
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
constexpr uint32 GetMapId() const
ZoneScript * FindZoneScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
void ProcessTalk(uint8 id)
npc_blades_edge_high_king_maulgar(Creature *creature)
void DoAction(int32 actionId) override
void HandleHit(SpellEffIndex) const
static constexpr uint32 MaulgarReactionGenderedF
static constexpr uint32 MaulgarReactionBored
static constexpr uint32 ArenaStart
static constexpr uint32 MaulgarReactionNonGendered
static constexpr uint32 ReactionTrigger
static constexpr uint32 MaulgarReactionGenderedM
static constexpr uint32 HighKingMaulgar
static constexpr uint32 Door02
static constexpr uint32 Door01
static constexpr uint32 BladesEdge
static constexpr uint32 ArenaReactionTrigger
static constexpr uint32 ArenaLowHealthCooldownAura
static constexpr uint32 KingVoiceOverCooldownAura
static constexpr uint8 ArenaStart
static constexpr uint8 ReactionTriggerGenderedF
static constexpr uint8 Bored
static constexpr uint8 ReactionTriggerNonGendered
static constexpr uint8 ReactionTriggerGenderedM
void OnUpdate(uint32 diff) override
arena_blades_edge_legion(BattlegroundMap *map)
void DoAction(uint32 actionId, WorldObject *source, WorldObject *) override
void OnCreatureCreate(Creature *creature) override
void OnPlayerJoined(Player *player, bool) override
void HandleReactionTriggerLowHealth(Player const *source)
void OnGameObjectCreate(GameObject *gameobject) override