198 rightHead->AI()->Talk(text);
215 RightHeadTalk(SAY_AGGRO_1_1);
236 RightHeadTalk(SAY_AGGRO_2_1);
253 RightHeadTalk(SAY_AGGRO_3_1);
270 RightHeadTalk(SAY_ATTACK_1_1);
274 Talk(SAY_ATTACK_1_2);
291 RightHeadTalk(SAY_ATTACK_2_1);
308 RightHeadTalk(SAY_ATTACK_3_1);
312 Talk(SAY_ATTACK_3_2);
325 RightHeadTalk(SAY_ATTACK_4);
329 Talk(SAY_ATTACK_4_1);
333 RightHeadTalk(SAY_ATTACK_4_2);
376 rightHead->DespawnOrUnsummon(4s);
417 creature->LoadEquipment(creature->GetOriginalEquipmentId());
First const & RAND(First const &first, Second const &second, Rest const &... rest)
bool roll_chance_i(int chance)
#define RegisterSpellScript(spell_script)
@ TARGET_UNIT_SRC_AREA_ENEMY
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PROC_TRIGGER_SPELL
#define AuraEffectProcFn(F, I, N)
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
void AddSC_boss_warbringer_omrogg()
HookList< EffectApplyHandler > OnEffectRemove
HookList< EffectProcHandler > OnEffectProc
HookList< AuraProcHandler > OnProc
HookList< EffectApplyHandler > OnEffectApply
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
static ObjectGuid GetGUID(Object const *o)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
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 & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
TaskScheduler & Update(success_t const &callback=EmptyCallback)
void DoMeleeAttackIfReady()
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual void AttackStart(Unit *)
ThreatManager & GetThreatManager()
bool HasUnitState(const uint32 f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
PrepareSpellScript(spell_omrogg_beatdown)
ObjectGuid _selectedTargetGuid
void FilterTargets(std::list< WorldObject * > &targets)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
void OnRemove(AuraEffect const *, AuraEffectHandleModes)
void OnApply(AuraEffect const *, AuraEffectHandleModes)
void OnProc(AuraEffect const *, ProcEventInfo &)
PrepareAuraScript(spell_omrogg_burning_maul)
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
#define RegisterShatteredHallsCreatureAI(ai_name)
boss_warbringer_omrogg(Creature *creature)
void JustDied(Unit *) override
void OnSpellCast(SpellInfo const *spellInfo) override
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override
void JustEngagedWith(Unit *who) override
void RightHeadTalk(uint32 text)
void UpdateAI(uint32 diff) override
void DoAction(int32 action) override
npc_omrogg_heads(Creature *creature)
InstanceScript * _instance