TrinityCore
Loading...
Searching...
No Matches
boss_drakkisath.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#include "ScriptMgr.h"
19#include "blackrock_spire.h"
20#include "ScriptedCreature.h"
21
23{
25 SPELL_CLEAVE = 20691,
27 SPELL_THUNDERCLAP = 15548, //Not sure if right ID. 23931 would be a harder possibility.
28};
29
37
38struct boss_drakkisath : public BossAI
39{
41
42 void Reset() override
43 {
44 _Reset();
45 }
46
55
56 void JustDied(Unit* /*killer*/) override
57 {
58 _JustDied();
59 }
60
61 void UpdateAI(uint32 diff) override
62 {
63 if (!UpdateVictim())
64 return;
65
66 events.Update(diff);
67
69 return;
70
71 while (uint32 eventId = events.ExecuteEvent())
72 {
73 switch (eventId)
74 {
75 case EVENT_FIRE_NOVA:
78 break;
79 case EVENT_CLEAVE:
82 break;
86 break;
90 break;
91 }
92
94 return;
95 }
96 }
97};
98
uint32_t uint32
Definition Define.h:154
Spells
Definition PlayerAI.cpp:32
@ UNIT_STATE_CASTING
Definition Unit.h:276
#define RegisterBlackrockSpireCreatureAI(ai_name)
@ DATA_GENERAL_DRAKKISATH
void AddSC_boss_drakkisath()
@ SPELL_CLEAVE
@ SPELL_CONFLIGURATION
@ SPELL_THUNDERCLAP
@ SPELL_FIRENOVA
@ EVENT_CONFLIGURATION
@ EVENT_THUNDERCLAP
@ EVENT_FIRE_NOVA
@ EVENT_CLEAVE
void JustEngagedWith(Unit *who) override
EventMap events
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:63
uint32 ExecuteEvent()
Definition EventMap.cpp:77
void Update(uint32 time)
Definition EventMap.h:61
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
Definition EventMap.cpp:40
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.cpp:180
Definition Unit.h:635
bool HasUnitState(const uint32 f) const
Definition Unit.h:743
void JustEngagedWith(Unit *who) override
boss_drakkisath(Creature *creature)
void UpdateAI(uint32 diff) override
void Reset() override
void JustDied(Unit *) override