Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
boss_houndmaster_loksey.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
/* ScriptData
7
SDName: Boss_Houndmaster_Loksey
8
SD%Complete: 100
9
SDComment:
10
SDCategory: Scarlet Monastery
11
EndScriptData */
12
13
#include "
ScriptMgr.h
"
14
#include "
ScriptedCreature.h
"
15
16
enum
Yells
17
{
18
SAY_AGGRO
= 0,
19
};
20
21
enum
Spells
22
{
23
SPELL_SUMMONSCARLETHOUND
= 17164,
24
SPELL_BLOODLUST
= 6742
25
};
26
27
class
boss_houndmaster_loksey
:
public
CreatureScript
28
{
29
public
:
30
boss_houndmaster_loksey
() :
CreatureScript
(
"boss_houndmaster_loksey"
) { }
31
32
CreatureAI
*
GetAI
(
Creature
* creature)
const
OVERRIDE
33
{
34
return
new
boss_houndmaster_lokseyAI
(creature);
35
}
36
37
struct
boss_houndmaster_lokseyAI
:
public
ScriptedAI
38
{
39
boss_houndmaster_lokseyAI
(
Creature
* creature) :
ScriptedAI
(creature) { }
40
41
uint32
BloodLust_Timer
;
42
43
void
Reset
()
OVERRIDE
44
{
45
BloodLust_Timer
= 20000;
46
}
47
48
void
EnterCombat
(
Unit
*
/*who*/
)
OVERRIDE
49
{
50
Talk
(
SAY_AGGRO
);
51
}
52
53
void
UpdateAI
(
uint32
diff)
OVERRIDE
54
{
55
if
(!
UpdateVictim
())
56
return
;
57
58
if
(
BloodLust_Timer
<= diff)
59
{
60
DoCast
(
me
,
SPELL_BLOODLUST
);
61
BloodLust_Timer
= 20000;
62
}
63
else
BloodLust_Timer
-= diff;
64
65
DoMeleeAttackIfReady
();
66
}
67
};
68
};
69
70
void
AddSC_boss_houndmaster_loksey
()
71
{
72
new
boss_houndmaster_loksey
();
73
}
Spells
Spells
Definition
BattlegroundIC.h:645
uint32
std::uint32_t uint32
Definition
Define.h:77
OVERRIDE
#define OVERRIDE
Definition
Define.h:60
ScriptMgr.h
ScriptedCreature.h
SAY_AGGRO
#define SAY_AGGRO
Definition
boss_commander_kolurg.cpp:28
SAY_AGGRO
@ SAY_AGGRO
Definition
boss_houndmaster_loksey.cpp:18
SPELL_BLOODLUST
@ SPELL_BLOODLUST
Definition
boss_houndmaster_loksey.cpp:24
SPELL_SUMMONSCARLETHOUND
@ SPELL_SUMMONSCARLETHOUND
Definition
boss_houndmaster_loksey.cpp:23
AddSC_boss_houndmaster_loksey
void AddSC_boss_houndmaster_loksey()
Definition
boss_houndmaster_loksey.cpp:70
CreatureAI
Definition
CreatureAI.h:54
CreatureAI::Talk
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
Definition
CreatureAI.cpp:28
CreatureAI::UpdateVictim
bool UpdateVictim()
Definition
CreatureAI.cpp:192
Creature
Definition
Creature.h:427
CreatureScript::CreatureScript
CreatureScript(const char *name)
Definition
ScriptMgr.cpp:1436
UnitAI::DoMeleeAttackIfReady
void DoMeleeAttackIfReady()
Definition
UnitAI.cpp:28
UnitAI::DoCast
void DoCast(uint32 spellId)
Definition
UnitAI.cpp:110
Unit
Definition
Unit.h:1367
boss_houndmaster_loksey
Definition
boss_houndmaster_loksey.cpp:28
boss_houndmaster_loksey::GetAI
CreatureAI * GetAI(Creature *creature) const OVERRIDE
Definition
boss_houndmaster_loksey.cpp:32
boss_houndmaster_loksey::boss_houndmaster_loksey
boss_houndmaster_loksey()
Definition
boss_houndmaster_loksey.cpp:30
ScriptedAI::me
Creature * me
Definition
ScriptedCreature.h:182
ScriptedAI::ScriptedAI
ScriptedAI(Creature *creature)
Definition
ScriptedCreature.cpp:85
Yells
Definition
boss_illidan.cpp:256
boss_houndmaster_loksey::boss_houndmaster_lokseyAI
Definition
boss_houndmaster_loksey.cpp:38
boss_houndmaster_loksey::boss_houndmaster_lokseyAI::UpdateAI
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
Definition
boss_houndmaster_loksey.cpp:53
boss_houndmaster_loksey::boss_houndmaster_lokseyAI::BloodLust_Timer
uint32 BloodLust_Timer
Definition
boss_houndmaster_loksey.cpp:41
boss_houndmaster_loksey::boss_houndmaster_lokseyAI::EnterCombat
void EnterCombat(Unit *) OVERRIDE
Definition
boss_houndmaster_loksey.cpp:48
boss_houndmaster_loksey::boss_houndmaster_lokseyAI::boss_houndmaster_lokseyAI
boss_houndmaster_lokseyAI(Creature *creature)
Definition
boss_houndmaster_loksey.cpp:39
boss_houndmaster_loksey::boss_houndmaster_lokseyAI::Reset
void Reset() OVERRIDE
Definition
boss_houndmaster_loksey.cpp:43
src
server
scripts
EasternKingdoms
ScarletMonastery
boss_houndmaster_loksey.cpp
Generated on
for Project SkyFire Core by
1.17.0