Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_nalorakk.cpp
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#include "ScriptMgr.h"
7#include "ScriptedCreature.h"
8#include "zulaman.h"
9
25
27{
28};
29
31{
32};
33
35{
36 public:
37
38 boss_nalorakk() : CreatureScript("boss_nalorakk") { }
39
40 struct boss_nalorakkAI : public BossAI
41 {
42 boss_nalorakkAI(Creature* creature) : BossAI(creature, DATA_NALORAKK) { }
43
45 {
46 _Reset();
47 }
48
49 void EnterCombat(Unit* /*who*/) OVERRIDE
50 {
53 }
54
55 void JustDied(Unit* /*killer*/) OVERRIDE
56 {
58 _JustDied();
59 }
60
61 void KilledUnit(Unit* victim) OVERRIDE
62 {
63 if (victim->GetTypeId() == TYPEID_PLAYER)
65 }
66
68 {
69 if (!UpdateVictim())
70 return;
71
72 events.Update(diff);
73
74 if (me->HasUnitState(UNIT_STATE_CASTING))
75 return;
76 /*
77 while (uint32 eventId = events.ExecuteEvent())
78 {
79 switch (eventId)
80 {
81 default:
82 break;
83 }
84 }
85 */
86
88 }
89 };
90
92 {
93 return new boss_nalorakkAI(creature);
94 }
95};
96
98{
99 new boss_nalorakk();
100}
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
static constexpr TypeID TYPEID_PLAYER
@ UNIT_STATE_CASTING
Definition Unit.h:527
@ SAY_PLAYER_KILL
#define SAY_DEATH
#define SAY_AGGRO
@ SAY_DEATH
@ SAY_SURGE
@ SAY_PLAYER_KILL
@ SAY_AGGRO
@ SAY_BEAR
@ EMOTE_SURGE
@ SAY_WAVE_1
@ SAY_WAVE_3
@ SAY_WAVE_4
@ SAY_TROLL
@ EMOTE_BEAR
@ SAY_WAVE_2
void AddSC_boss_nalorakk()
EventMap events
BossAI(Creature *creature, uint32 bossId)
void _EnterCombat()
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
bool UpdateVictim()
CreatureScript(const char *name)
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:28
Definition Unit.h:1367
CreatureAI * GetAI(Creature *creature) const OVERRIDE
Creature * me
boss_nalorakkAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void KilledUnit(Unit *victim) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void JustDied(Unit *) OVERRIDE
@ DATA_NALORAKK
Definition zulaman.h:16