TrinityCore
Loading...
Searching...
No Matches
boss_epoch_hunter.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/* Missing spawns pre-event, missing speech to be coordinated with rest of escort event */
19
20#include "ScriptMgr.h"
21#include "InstanceScript.h"
22#include "old_hillsbrad.h"
23#include "ScriptedCreature.h"
24
33
41
49
50// 18096 - Epoch Hunter
52{
54
55 void Reset() override
56 {
58 }
59
69
70 void KilledUnit(Unit* /*victim*/) override
71 {
73 }
74
75 void JustDied(Unit* killer) override
76 {
77 BossAI::JustDied(killer);
79
81 }
82
83 void UpdateAI(uint32 diff) override
84 {
85 if (!UpdateVictim())
86 return;
87
88 events.Update(diff);
89
91 return;
92
93 while (uint32 eventId = events.ExecuteEvent())
94 {
95 switch (eventId)
96 {
100 events.Repeat(10s, 20s);
101 break;
104 events.Repeat(25s, 30s);
105 break;
108 events.Repeat(15s);
109 break;
112 events.Repeat(25s, 35s);
113 break;
114 default:
115 break;
116 }
117
119 return;
120 }
121
123 }
124};
125
uint32_t uint32
Definition Define.h:133
@ UNIT_STATE_CASTING
Definition Unit.h:235
EpochHunterTexts
@ SAY_DEATH
@ SAY_AGGRO
@ SAY_ENTER
@ SAY_BREATH
EpochHunterEvents
@ EVENT_WING_BUFFET
@ EVENT_IMPENDING_DEATH
@ EVENT_MAGIC_DISRUPTION_AURA
@ EVENT_SAND_BREATH
EpochHunterSpells
@ SPELL_SAND_BREATH
@ SPELL_WING_BUFFET
@ SPELL_MAGIC_DISRUPTION_AURA
@ SPELL_IMPENDING_DEATH
void AddSC_boss_epoch_hunter()
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
EventMap events
void Reset() override
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:82
void Update(uint32 time)
Definition EventMap.h:67
void Repeat(Milliseconds time)
Definition EventMap.cpp:63
EventId ExecuteEvent()
Definition EventMap.cpp:73
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Definition EventMap.cpp:36
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:54
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:241
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.cpp:166
Definition Unit.h:769
bool HasUnitState(const uint32 f) const
Definition Unit.h:876
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:56
@ OH_ESCORT_FINISHED
#define RegisterOldHillsbradCreatureAI(ai_name)
@ DATA_EPOCH_HUNTER
@ TYPE_THRALL_EVENT
void JustEngagedWith(Unit *who) override
void JustDied(Unit *killer) override
void Reset() override
boss_epoch_hunter(Creature *creature)
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override