Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_akilzon.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
20
22{
23 public:
24 boss_akilzon() : CreatureScript("boss_akilzon") { }
25
26 struct boss_akilzonAI : public BossAI
27 {
28 boss_akilzonAI(Creature* creature) : BossAI(creature, DATA_AKILZON) { }
29
31 {
32 _Reset();
33 }
34
35 void EnterCombat(Unit* /*who*/) OVERRIDE
36 {
39 }
40
41 void JustDied(Unit* /*killer*/) OVERRIDE
42 {
44 _JustDied();
45 }
46
47 void KilledUnit(Unit* victim) OVERRIDE
48 {
49 if (victim->GetTypeId() == TYPEID_PLAYER)
51 }
52
54 {
55 if (!UpdateVictim())
56 return;
57
58 events.Update(diff);
59
60 if (me->HasUnitState(UNIT_STATE_CASTING))
61 return;
62 /*
63 while (uint32 eventId = events.ExecuteEvent())
64 {
65 switch (eventId)
66 {
67 default:
68 break;
69 }
70 }
71 */
72
74 }
75 };
76
78 {
79 return GetZulAmanAI<boss_akilzonAI>(creature);
80 }
81};
82
84{
85 new boss_akilzon();
86}
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_DEATH
@ SAY_PLAYER_KILL
@ SAY_AGGRO
@ SAY_SUMMON_EAGLE
@ EMOTE_ELECTRICAL_STORM
@ SAY_BERSERK
@ SAY_SUMMON_BIRDS
void AddSC_boss_akilzon()
#define SAY_DEATH
#define SAY_AGGRO
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 UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
boss_akilzonAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void JustDied(Unit *) OVERRIDE
void KilledUnit(Unit *victim) OVERRIDE
CreatureAI * GetZulAmanAI(Creature *creature)
Definition zulaman.h:69
@ DATA_AKILZON
Definition zulaman.h:15