182 { 1983.75f, -243.36f, 432.767f, 1.57f },
183 { 1999.90f, -230.49f, 432.767f, 1.57f },
184 { 2010.06f, -243.45f, 432.767f, 1.57f },
185 { 2021.12f, -236.65f, 432.767f, 1.57f },
186 { 2028.10f, -244.66f, 432.767f, 1.57f },
187 { 2014.18f, -232.80f, 432.767f, 1.57f },
188 { 1992.90f, -237.54f, 432.767f, 1.57f },
189 { 1976.60f, -233.53f, 432.767f, 1.57f }
230 for (
int32 i = 0; i < count; ++i)
249 std::vector<Creature*> coolestFriends;
251 for (
Creature* coolestFriend : coolestFriends)
354 std::vector<Creature*> coolestFriends;
356 for (
Creature* coolestFriend : coolestFriends)
357 if (coolestFriend->IsAlive())
438 std::vector<Creature*> firesCreatures;
440 for (
Creature* fire : firesCreatures)
441 fire->DespawnOrUnsummon();
443 std::vector<GameObject*> firesObjects;
511 std::vector<Creature*> flashes;
608 if (!targets.empty())
750 DoCastSelf(SPELL_ICICLE_PERIODIC_1);
751 DoCastSelf(SPELL_ICICLE_DUMMY);
753 case NPC_SNOWPACKED_ICICLE:
754 DoCastSelf(SPELL_ICICLE_PERIODIC_2);
755 DoCastSelf(SPELL_ICICLE_DUMMY);
806 hodir->AI()->JustSummoned(
me);
812 if (
Unit* summoner = summon->GetSummonerUnit())
813 if (!summoner->IsAlive())
836 me->InterruptNonMeleeSpells(false);
837 me->SetUninteractible(true);
841 me->DespawnOrUnsummon();
879 hodir->AI()->JustSummoned(
me);
885 if (
Unit* summoner = summon->GetSummonerUnit())
886 if (!summoner->IsAlive())
909 me->InterruptNonMeleeSpells(false);
910 me->SetUninteractible(true);
914 me->DespawnOrUnsummon();
1076 const_cast<AuraEffect*
>(aurEff)->ResetTicks();
@ TEMPSUMMON_MANUAL_DESPAWN
Milliseconds randtime(Milliseconds min, Milliseconds max)
#define RegisterSpellScript(spell_script)
void GetCreatureListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
void GetCreatureListWithOptionsInGrid(Container &container, WorldObject *source, float maxSearchRange, FindCreatureOptions const &options)
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
void GetGameObjectListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
@ TARGET_UNIT_SRC_AREA_ENTRY
@ TARGET_UNIT_DEST_AREA_ENEMY
@ TARGET_UNIT_SRC_AREA_ENEMY
@ EMOTE_ONESHOT_CHEER_NO_SHEATHE
@ SPELL_AURA_PERIODIC_DUMMY
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
@ NPC_FLASH_FREEZE_COMBAT
@ SPELL_ICE_SHARDS_DAMAGE_1
@ SPELL_FLASH_FREEZE_KILL
@ SPELL_STORM_CLOUD_EFFECT
@ SPELL_SHATTER_CHEST_MISSILE
@ SPELL_FLASH_FREEZE_STUN_COMBAT
@ SPELL_FLASH_FREEZE_STUN_INIT
@ SPELL_ICICLE_PERIODIC_1
@ SPELL_MOONKIN_FORM_SHAPESHIFT
@ SPELL_TOASTY_FIRE_AREA_AURA
@ SPELL_BITING_COLD_DAMAGE
@ SPELL_FLASH_FREEZE_VISUAL
@ SPELL_ICICLE_PERIODIC_2
@ SPELL_FLASH_FREEZE_INITIAL_AGGRO
@ SPELL_FLASH_FREEZE_SUMMON_INIT
@ SPELL_ICE_SHARDS_DAMAGE_2
@ SPELL_STORM_CLOUD_EFFECT_H
@ SPELL_FLASH_FREEZE_SUMMON_COMBAT
@ SPELL_CONJURE_TOASTY_FIRE
@ SPELL_BITING_COLD_PERIODIC
@ SPELL_CHECK_FOR_PLAYERS
@ SPELL_ICICLE_FORCE_CAST
static constexpr std::array< uint32, 8 > CoolestFriendsEntriesHorde
@ EVENT_FLASH_FREEZE_FINISHED_2
@ EVENT_FLASH_FREEZE_FINISHED_1
@ EVENT_FLASH_FREEZE_FINISHED_3
static constexpr std::array< uint32, 8 > CoolestFriendsEntriesAlliance
Position const SummonPositions[8]
@ ACTION_PLAYER_IS_FROZEN
@ ACTION_COOLEST_FRIEND_VICTORY
@ ACTION_COOLEST_FRIEND_DIES
@ ACTION_COOLEST_FRIEND_PREPARE
@ ACTION_BITING_COLD_TOO_MUCH_STACKS
uint32 GetTickNumber() const
HookList< EffectPeriodicHandler > OnEffectPeriodic
uint8 GetStackAmount() const
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
virtual void EnterEvadeMode(EvadeReason why=EvadeReason::Other)
void SetHomePosition(float x, float y, float z, float o)
void SetDisplayFromModel(uint32 modelIdx)
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetImmuneToNPC(bool apply) override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
TeamId GetTeamIdInInstance() const
virtual bool SetBossState(uint32 id, EncounterState state)
Creature * GetCreature(uint32 type)
void DoUpdateWorldState(int32 worldStateId, int32 value)
void TriggerGameEvent(uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
int32 CalcValueAsInt(WorldObject const *caster=nullptr, SpellEffectValue const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
static bool ValidateSpellEffect(std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
int32 GetEffectValueAsInt() const
Unit * GetHitUnit() const
SpellEffectInfo const & GetEffectInfo() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
void DespawnEntry(uint32 entry)
TaskScheduler::repeated_t GetRepeatCounter() const
Returns the repeat counter which increases every time the task is repeated.
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
TaskScheduler & Update()
Update the scheduler to the current time.
void AttackStartCaster(Unit *victim, float dist)
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void CombatStop(bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
void SetFaction(uint32 faction) override
TempSummon * ToTempSummon()
void SetEmoteState(Emote emote)
void EngageWithTarget(Unit *who)
void RemoveAuraFromStack(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1)
bool HasUnitState(const uint32 f) const
void RemoveAllAttackers()
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 RemoveAurasOnEvade()
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
GameObject * FindNearestGameObject(uint32 entry, float range, bool spawnedOnly=true) 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)
bool Validate(SpellInfo const *) override
void OnPeriodic(AuraEffect const *aurEff)
bool Validate(SpellInfo const *) override
void OnPeriodic(AuraEffect const *)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
bool Validate(SpellInfo const *) override
void OnPeriodic(AuraEffect const *aurEff)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
void FilterTargets(std::list< WorldObject * > &targets)
void FilterTargets(std::list< WorldObject * > &targets)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
void OnPeriodic(AuraEffect const *)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
void FilterTargets(std::list< WorldObject * > &targets)
bool Validate(SpellInfo const *) override
void RandomResize(C &container, std::size_t requestedSize)
void EnterEvadeMode(EvadeReason why) override
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
void AttackStart(Unit *who) override
CoolestFriendBaseAI(Creature *creature)
TaskScheduler EpilogueScheduler
virtual void ScheduleEvents()=0
void JustAppeared() override
void InitializeAI() override
InstanceScript * Instance
void DoAction(int32 action) override
void JustDied(Unit *) override
constexpr void GetPosition(float &x, float &y) const
T const & RAID_MODE(T const &normal10, T const &normal25) const
std::list< Creature * > DoFindFriendlyCC(float range)
boss_hodir(Creature *creature)
void UpdateAI(uint32 diff) override
void DoAction(int32 action) override
void EnterEvadeMode(EvadeReason) override
void JustAppeared() override
void OnSpellCast(SpellInfo const *spellInfo) override
void OnSpellStart(SpellInfo const *spellInfo) override
void JustEngagedWith(Unit *who) override
void KilledUnit(Unit *who) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void JustAppeared() override
void UpdateAI(uint32 diff) override
void InitializeAI() override
npc_flash_freeze_combat(Creature *creature)
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
InstanceScript * _instance
void InitializeAI() override
npc_flash_freeze_init(Creature *creature)
void JustAppeared() override
void UpdateAI(uint32 diff) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
InstanceScript * _instance
void ScheduleEvents() override
npc_hodir_druid(Creature *creature)
void JustAppeared() override
npc_hodir_mage(Creature *creature)
void ScheduleEvents() override
npc_hodir_priest(Creature *creature)
void ScheduleEvents() override
void ScheduleEvents() override
npc_hodir_shaman(Creature *creature)
void UpdateAI(uint32 diff) override
void InitializeAI() override
void JustAppeared() override
npc_icicle(Creature *creature)
npc_snowpacked_icicle_target(Creature *creature)
void JustAppeared() override
void InitializeAI() override
void InitializeAI() override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void JustAppeared() override
npc_toasty_fire(Creature *creature)
#define RegisterUlduarCreatureAI(ai_name)
@ WORLD_STATE_HODIR_THIS_CACHE_WAS_RARE_FAILED
@ WORLD_STATE_HODIR_COOLEST_FRIENDS_FAILED
@ WORLD_STATE_HODIR_CHEESE_THE_FREEZE_FAILED
@ WORLD_STATE_HODIR_GETTING_COLD_FAILED
@ NPC_BATTLE_PRIEST_ELIZA
@ NPC_ELEMENTALIST_MAHFUUN
@ ACTION_FLASH_FREEZE_FINISHED
@ ACTION_INITIAL_AGGRO_HODIR