184 { 1983.75f, -243.36f, 432.767f, 1.57f },
185 { 1999.90f, -230.49f, 432.767f, 1.57f },
186 { 2010.06f, -243.45f, 432.767f, 1.57f },
187 { 2021.12f, -236.65f, 432.767f, 1.57f },
188 { 2028.10f, -244.66f, 432.767f, 1.57f },
189 { 2014.18f, -232.80f, 432.767f, 1.57f },
190 { 1992.90f, -237.54f, 432.767f, 1.57f },
191 { 1976.60f, -233.53f, 432.767f, 1.57f }
236 for (
int32 i = 0; i < count; ++i)
255 std::vector<Creature*> coolestFriends;
257 for (
Creature* coolestFriend : coolestFriends)
376 std::vector<Creature*> coolestFriends;
378 for (
Creature* coolestFriend : coolestFriends)
379 if (coolestFriend->IsAlive())
460 std::vector<Creature*> firesCreatures;
462 for (
Creature* fire : firesCreatures)
463 fire->DespawnOrUnsummon();
465 std::vector<GameObject*> firesObjects;
539 std::vector<Creature*> flashes;
638 if (!targets.empty())
780 DoCastSelf(SPELL_ICICLE_PERIODIC_1);
781 DoCastSelf(SPELL_ICICLE_DUMMY);
783 case NPC_SNOWPACKED_ICICLE:
784 DoCastSelf(SPELL_ICICLE_PERIODIC_2);
785 DoCastSelf(SPELL_ICICLE_DUMMY);
836 hodir->AI()->JustSummoned(
me);
842 if (
Unit* summoner = summon->GetSummonerUnit())
843 if (!summoner->IsAlive())
866 me->InterruptNonMeleeSpells(false);
867 me->SetUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
871 me->DespawnOrUnsummon();
909 hodir->AI()->JustSummoned(
me);
915 if (
Unit* summoner = summon->GetSummonerUnit())
916 if (!summoner->IsAlive())
939 me->InterruptNonMeleeSpells(false);
940 me->SetUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
944 me->DespawnOrUnsummon();
1117 const_cast<AuraEffect*
>(aurEff)->ResetTicks();
@ RAID_DIFFICULTY_10MAN_NORMAL
@ TEMPSUMMON_MANUAL_DESPAWN
Milliseconds randtime(Milliseconds min, Milliseconds max)
if(posix_memalign(&__mallocedMemory, __align, __size)) return NULL
#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
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
#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_ICICLE_FORCE_CAST_H
@ 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)
void DoZoneInCombat(Creature *creature=nullptr)
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
void SetHomePosition(float x, float y, float z, float o)
void SetDisplayId(uint32 modelId) override
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
CreatureTemplate const * GetCreatureTemplate() const
void SetImmuneToNPC(bool apply) override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
virtual bool SetBossState(uint32 id, EncounterState state)
Creature * GetCreature(uint32 type)
static Creature * ToCreature(Object *o)
int32 CalcValue(WorldObject const *caster=nullptr, int32 const *basePoints=nullptr) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
Unit * GetHitUnit() const
SpellEffectInfo const & GetEffectInfo() const
HookList< EffectHandler > OnEffectHitTarget
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
void DespawnEntry(uint32 entry)
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskScheduler::repeated_t GetRepeatCounter() const
Returns the repeat counter which increases every time the task is repeated.
TaskScheduler & CancelAll()
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
TaskScheduler & Update(success_t const &callback=EmptyCallback)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
void AttackStartCaster(Unit *victim, float dist)
void DoMeleeAttackIfReady()
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual uint32 GetData(uint32) const
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 SetFaction(uint32 faction) override
TempSummon * ToTempSummon()
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
void SetEmoteState(Emote emote)
void RemoveAuraFromStack(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void EngageWithTarget(Unit *who)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool HasUnitState(const uint32 f) const
void HandleEmoteCommand(Emote emoteId)
void RemoveAllAttackers()
void CombatStop(bool includingCast=false, bool mutualPvP=true)
void RemoveAurasOnEvade()
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)
virtual uint32 GetData(uint32) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
achievement_cheese_the_freeze()
bool OnCheck(Player *, Unit *target) override
achievement_getting_cold_in_here()
bool OnCheck(Player *, Unit *target) override
bool OnCheck(Player *, Unit *target) override
achievement_i_have_the_coolest_friends()
bool OnCheck(Player *player, Unit *) override
achievement_staying_buffed_all_winter_25()
bool OnCheck(Player *player, Unit *) override
achievement_staying_buffed_all_winter()
achievement_this_cache_was_rare()
bool OnCheck(Player *, Unit *target) override
PrepareAuraScript(spell_hodir_biting_cold_area_aura)
bool Validate(SpellInfo const *) override
void OnPeriodic(AuraEffect const *aurEff)
bool Validate(SpellInfo const *) override
void OnPeriodic(AuraEffect const *)
PrepareAuraScript(spell_hodir_biting_cold_periodic)
PrepareSpellScript(spell_hodir_dispel_magic)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
bool Validate(SpellInfo const *) override
PrepareAuraScript(spell_hodir_flash_freeze)
void OnPeriodic(AuraEffect const *aurEff)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
PrepareSpellScript(spell_hodir_freeze)
PrepareSpellScript(spell_hodir_icicle_force_cast)
void FilterTargets(std::list< WorldObject * > &targets)
PrepareSpellScript(spell_hodir_icicle)
void FilterTargets(std::list< WorldObject * > &targets)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
void FilterTargets(std::list< WorldObject * > &targets)
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_hodir_melt_ice)
bool Validate(SpellInfo const *spellInfo) override
PrepareAuraScript(spell_hodir_shatter_chest)
void OnPeriodic(AuraEffect const *)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_hodir_storm_cloud_primer)
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
void GetPosition(float &x, float &y) const
T const & RAID_MODE(T const &normal10, T const &normal25) const
Difficulty GetDifficulty() 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
uint32 GetData(uint32 type) const override
void OnSpellCast(SpellInfo const *spellInfo) override
void OnSpellStart(SpellInfo const *spellInfo) override
bool _cheeseTheFreezeFailed
void JustEngagedWith(Unit *who) override
void KilledUnit(Unit *who) override
bool _iHaveTheCoolestFriendsFailed
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
bool _thisCacheWasRareFailed
bool _gettingColdInHereFailed
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_ULDUAR_TEAM_IN_INSTANCE
@ 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