117 std::list<Creature*> mindbenders;
119 for (
Creature* mindbender : mindbenders)
120 mindbender->DespawnOrUnsummon();
289template<u
int32 ConvoIntroSpellId, u
int32 ConvoOutroSpellId>
454 if (!ancientMindbender)
519 creatureCaster->DespawnOrUnsummon();
533 Position const offset = { 0.0f, 0.0f, 20.0f, 0.0f };
@ ENCOUNTER_FRAME_DISENGAGE
@ TEMPSUMMON_MANUAL_DESPAWN
#define RegisterSpellAndAuraScriptPair(script_1, script_2)
#define RegisterAreaTriggerAI(ai_name)
#define RegisterSpellScript(spell_script)
#define RegisterConversationAI(ai_name)
@ TARGET_DEST_DEST_RANDOM
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_EFFECT_APPLY_AURA
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DUMMY
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
@ SPELL_AURA_SET_VEHICLE_ID
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
@ 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)
#define AuraEffectPeriodicFn(F, I, N)
#define SpellDestinationTargetSelectFn(F, I, N)
#define AuraEffectRemoveFn(F, I, N, M)
void AddSC_boss_lord_stormsong()
@ CONVO_ACTOR_BROTHER_PIKE
@ SPELL_CONVERSATION_HORDE_OUTRO
@ SPELL_ANCIENT_MINDBENDER
@ SPELL_CONVERSATION_ALLIANCE_OUTRO
@ SPELL_WAKEN_THE_VOID_AREATRIGGER
@ SPELL_WAKEN_THE_VOID_SUMMON
@ SPELL_CONVERSATION_ALLIANCE_INTRO
@ SPELL_SURRENDER_TO_THE_VOID
@ SPELL_CONVERSATION_HORDE_INTRO
@ SPELL_WAKEN_THE_VOID_AREA
@ SPELL_DISCIPLE_OF_THE_VOL_ZITH
constexpr Position IntroPosition
AreaTriggerAI(AreaTrigger *a, uint32 scriptId={}) noexcept
uint32 GetTickNumber() const
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
SpellEffectInfo const & GetEffectInfo(SpellEffIndex effIndex) const
HookList< EffectApplyHandler > OnEffectRemove
ObjectGuid const & GetGUID() const
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
Conversation *const conversation
void AddActor(int32 actorId, uint32 actorIdx, ObjectGuid const &actorGuid)
bool _EnterEvadeMode(EvadeReason why=EvadeReason::Other)
void SetImmuneToPC(bool apply) override
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void RescheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void AddEvent(BasicEvent *event, Milliseconds e_time, bool set_addtime=true)
Team GetTeamInInstance() const
virtual bool SetBossState(uint32 id, EncounterState state)
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell, bool includePets=false, bool includeControlled=false)
Creature * GetCreature(uint32 type)
void SendEncounterUnit(EncounterFrameType type, Unit const *unit, Optional< int32 > param1={}, Optional< int32 > param2={})
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, Milliseconds duration=0ms, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty, SmoothPhasingInfo const *smoothPhasingInfo=nullptr)
void MoveFollow(Unit *target, float dist, Optional< ChaseAngle > angle={}, Optional< Milliseconds > duration={}, bool ignoreTargetWalk=false, MovementSlot slot=MOTION_SLOT_ACTIVE, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, Optional< bool > exactSplinePath={}, bool generatePath=true, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
bool IsGameMaster() const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
int32 GetEffectValueAsInt() const
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
TaskContext & Schedule(TaskScheduler::duration_t time, TaskScheduler::task_handler_t task)
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & Update()
Update the scheduler to the current time.
WorldObject * GetSummoner() const
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual void DoAction(int32 param)
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void SetOverrideDisplayPowerId(uint32 powerDisplayId)
int32 ModifyPower(Powers power, int32 val, bool withPowerUpdate=true)
void SetPower(Powers power, int32 val, bool withPowerUpdate=true)
MotionMaster * GetMotionMaster()
TempSummon * ToTempSummon()
void SetEmoteState(Emote emote)
int32 GetPower(Powers power) const
void SetFacingTo(float const ori, bool force=true)
bool HasUnitState(const uint32 f) const
Vehicle * GetVehicleKit() const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void SetPowerType(Powers power, bool sendUpdate=true, bool onInit=false)
Unit * GetPassenger(int8 seatId) const
Gets a passenger on specified seat.
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
void GetCreatureListWithOptionsInGrid(Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
virtual void DoAction(uint32 actionId, WorldObject *source=nullptr, WorldObject *target=nullptr)
virtual uint32 GetData(uint32) const
virtual void SetData(uint32, uint32)
void OnCreate(Unit *creator) override
conversation_lord_stormsong_brother_pike_intro_outro(Conversation *conversation)
void OnCreate(Unit *creator) override
conversation_lord_stormsong_rexxar_intro(Conversation *conversation)
void OnCreate(Unit *creator) override
conversation_lord_stormsong_rexxar_outro(Conversation *conversation)
void OnRemove(AuraEffect const *, AuraEffectHandleModes) const
bool Validate(SpellInfo const *) override
void HandleHit(SpellEffIndex) const
void HandlePeriodic(AuraEffect const *) const
bool Validate(SpellInfo const *spellInfo) override
void PeriodicTick(AuraEffect const *aurEff) const
static constexpr std::array< uint8, 2 > LordStormsongEnergizeCycle
void AfterRemove(AuraEffect const *, AuraEffectHandleModes) const
void HandleFixate(SpellEffIndex) const
void ModDestHeight(SpellDestination &dest) const
void OnRemove(AuraEffect const *, AuraEffectHandleModes) const
void HandleDummy(SpellEffIndex) const
bool Validate(SpellInfo const *spellInfo) override
void HandleHitTarget(SpellEffIndex) const
bool Validate(SpellInfo const *) override
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
#define RegisterShrineOfTheStormCreatureAI(ai_name)
@ DATA_LORD_STORMSONG_INTRO
@ DATA_LORD_STORMSONG_REXXAR
@ DATA_LORD_STORMSONG_BROTHER_PIKE
@ NPC_LORD_STORMSONG_BROTHER_PIKE
@ NPC_LORD_STORMSONG_REXXAR
constexpr void SetOrientation(float orientation)
constexpr void GetPosition(float &x, float &y) const
constexpr float GetOrientation() const
bool IsHeroicOrHigher() const
void RelocateOffset(Position const &offset)
at_lord_stormsong_intro(AreaTrigger *areatrigger)
void OnUnitEnter(Unit *unit) override
void OnUnitEnter(Unit *unit) override
void JustAppeared() override
boss_lord_stormsong_ancient_mindbender(Creature *creature)
void JustAppeared() override
void UpdateAI(uint32 diff) override
void DoAction(int32 action) override
boss_lord_stormsong_intro_npc(Creature *creature)
void WaypointReached(uint32 waypointId, uint32 pathId) override
void SpellHitTarget(WorldObject *target, SpellInfo const *spellInfo) override
void DoAction(int32 actionId) override
boss_lord_stormsong(Creature *creature)
void JustDied(Unit *) override
void DespawnMindbenders()
void JustAppeared() override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *who) override
void EnterEvadeMode(EvadeReason) override