TrinityCore
boss_jindo_the_godbreaker.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{
24 // Jin'do the Godbreaker
27 EMOTE_SHADOWS_OF_HAKKAR = 2, // ID - 97172 Shadows of Hakkar
29 //SAY_PLAYER_KILL = 4, // missing data
30
31 // Spirit of Hakkar
34
35 // Jin'do the Godbreaker - Trigger
37
38 // Shadow of Hakkar
40};
41
43{
44};
45
47{
48};
49
51{
52 public:
53 boss_jindo_the_godbreaker() : CreatureScript("boss_jindo_the_godbreaker") { }
54
56 {
58
59 void Reset() override
60 {
61 _Reset();
62 }
63
64 void JustEngagedWith(Unit* who) override
65 {
68 }
69
70 void JustDied(Unit* /*killer*/) override
71 {
72 }
73
74 void UpdateAI(uint32 diff) override
75 {
76 if (!UpdateVictim())
77 return;
78
79 events.Update(diff);
80
82 return;
83 /*
84 while (uint32 eventId = events.ExecuteEvent())
85 {
86 switch (eventId)
87 {
88 default:
89 break;
90 }
91 }
92 */
93 }
94 };
95
96 CreatureAI* GetAI(Creature* creature) const override
97 {
98 return GetZulGurubAI<boss_jindo_the_godbreakerAI>(creature);
99 }
100};
101
103{
105}
uint32_t uint32
Definition: Define.h:142
Spells
Definition: PlayerAI.cpp:32
@ UNIT_STATE_CASTING
Definition: Unit.h:270
@ EMOTE_SHADOWS_OF_HAKKAR
@ SAY_SPIRIT_SPIRIT_PHASE
@ SAY_JINDO_SPIRIT_PHASE
void AddSC_boss_jindo_the_godbreaker()
Yells
void JustEngagedWith(Unit *who) override
EventMap events
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:56
bool UpdateVictim()
Definition: CreatureAI.cpp:245
Creature *const me
Definition: CreatureAI.h:61
void Update(uint32 time)
Definition: EventMap.h:56
Definition: Unit.h:627
bool HasUnitState(const uint32 f) const
Definition: Unit.h:732
CreatureAI * GetAI(Creature *creature) const override
@ DATA_JINDO
Definition: zulgurub.h:34