TrinityCore
Loading...
Searching...
No Matches
boss_kilnara.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 "ScriptedCreature.h"
20#include "zulgurub.h"
21
23{
25 SAY_WAVE_OF_AGONY = 1, // ID - 96457 Wave of Agony
29 SAY_DEATH = 5
30};
31
33{
34};
35
37{
38};
39
40struct boss_kilnara : public BossAI
41{
42 boss_kilnara(Creature* creature) : BossAI(creature, DATA_KILNARA) { }
43
44 void Reset() override
45 {
46 _Reset();
47 }
48
49 void JustEngagedWith(Unit* who) override
50 {
53 }
54
55 void JustDied(Unit* /*killer*/) override
56 {
57 _JustDied();
59 }
60
61 void KilledUnit(Unit* victim) override
62 {
63 if (victim->GetTypeId() == TYPEID_PLAYER)
65 }
66
67 void UpdateAI(uint32 diff) override
68 {
69 if (!UpdateVictim())
70 return;
71
72 events.Update(diff);
73
75 return;
76 /*
77 while (uint32 eventId = events.ExecuteEvent())
78 {
79 switch (eventId)
80 {
81 default:
82 break;
83 }
84 }
85 */
86 }
87};
88
uint32_t uint32
Definition Define.h:154
@ TYPEID_PLAYER
Definition ObjectGuid.h:44
Spells
Definition PlayerAI.cpp:32
@ UNIT_STATE_CASTING
Definition Unit.h:276
@ SAY_DEATH
@ SAY_PLAYER_KILL
@ SAY_TRANSFROM_1
@ SAY_AGGRO
@ SAY_TRANSFROM_2
@ SAY_WAVE_OF_AGONY
void AddSC_boss_kilnara()
Yells
TypeID GetTypeId() const
Definition BaseEntity.h:166
void JustEngagedWith(Unit *who) override
EventMap events
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:63
void Update(uint32 time)
Definition EventMap.h:61
Definition Unit.h:635
bool HasUnitState(const uint32 f) const
Definition Unit.h:743
void JustDied(Unit *) override
void Reset() override
void KilledUnit(Unit *victim) override
void JustEngagedWith(Unit *who) override
void UpdateAI(uint32 diff) override
boss_kilnara(Creature *creature)
#define RegisterZulGurubCreatureAI(ai_name)
Definition zulgurub.h:98
@ DATA_KILNARA
Definition zulgurub.h:32