Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_halazzi.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
19
21{
22};
23
25{
26};
27
29{
30 public:
31
32 boss_halazzi() : CreatureScript("boss_halazzi") { }
33
34 struct boss_halazziAI : public BossAI
35 {
36 boss_halazziAI(Creature* creature) : BossAI(creature, DATA_HALAZZI) { }
37
39 {
40 _Reset();
41 }
42
43 void EnterCombat(Unit* /*who*/) OVERRIDE
44 {
47 }
48
49 void JustDied(Unit* /*killer*/) OVERRIDE
50 {
52 _JustDied();
53 }
54
55 void KilledUnit(Unit* victim) OVERRIDE
56 {
57 if (victim->GetTypeId() == TYPEID_PLAYER)
59 }
60
62 {
63 if (!UpdateVictim())
64 return;
65
66 events.Update(diff);
67
68 if (me->HasUnitState(UNIT_STATE_CASTING))
69 return;
70 /*
71 while (uint32 eventId = events.ExecuteEvent())
72 {
73 switch (eventId)
74 {
75 default:
76 break;
77 }
78 }
79 */
80
82 }
83 };
84
86 {
87 return GetZulAmanAI<boss_halazziAI>(creature);
88 }
89};
90
92{
93 new boss_halazzi();
94}
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
void AddSC_boss_halazzi()
@ SAY_DEATH
@ SAY_MELEE
@ SAY_PLAYER_KILL
@ SAY_COMBINE
@ SAY_AGGRO
@ SAY_SPLIT
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
void JustDied(Unit *) OVERRIDE
void KilledUnit(Unit *victim) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *) OVERRIDE
boss_halazziAI(Creature *creature)
CreatureAI * GetZulAmanAI(Creature *creature)
Definition zulaman.h:69
@ DATA_HALAZZI
Definition zulaman.h:18