Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
pet_priest.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
/*
7
* Ordered alphabetically using scriptname.
8
* Scriptnames of files in this file should be prefixed with "npc_pet_pri_".
9
*/
10
11
#include "
ScriptMgr.h
"
12
#include "
ScriptedCreature.h
"
13
#include "
PassiveAI.h
"
14
#include "
PetAI.h
"
15
16
enum
PriestSpells
17
{
18
SPELL_PRIEST_LIGHTWELL_CHARGES
= 59907
19
};
20
21
class
npc_pet_pri_lightwell
:
public
CreatureScript
22
{
23
public
:
24
npc_pet_pri_lightwell
() :
CreatureScript
(
"npc_pet_pri_lightwell"
) { }
25
26
struct
npc_pet_pri_lightwellAI
:
public
PassiveAI
27
{
28
npc_pet_pri_lightwellAI
(
Creature
* creature) :
PassiveAI
(creature)
29
{
30
DoCast
(
me
,
SPELL_PRIEST_LIGHTWELL_CHARGES
,
false
);
31
}
32
33
void
EnterEvadeMode
()
OVERRIDE
34
{
35
if
(!
me
->IsAlive())
36
return
;
37
38
me
->DeleteThreatList();
39
me
->CombatStop(
true
);
40
me
->ResetPlayerDamageReq();
41
}
42
};
43
44
CreatureAI
*
GetAI
(
Creature
* creature)
const
OVERRIDE
45
{
46
return
new
npc_pet_pri_lightwellAI
(creature);
47
}
48
};
49
50
void
AddSC_priest_pet_scripts
()
51
{
52
new
npc_pet_pri_lightwell
();
53
}
OVERRIDE
#define OVERRIDE
Definition
Define.h:60
PassiveAI.h
PetAI.h
ScriptMgr.h
ScriptedCreature.h
CreatureAI
Definition
CreatureAI.h:54
CreatureAI::me
Creature *const me
Definition
CreatureAI.h:56
Creature
Definition
Creature.h:427
CreatureScript::CreatureScript
CreatureScript(const char *name)
Definition
ScriptMgr.cpp:1436
PassiveAI::PassiveAI
PassiveAI(Creature *c)
Definition
PassiveAI.cpp:10
UnitAI::DoCast
void DoCast(uint32 spellId)
Definition
UnitAI.cpp:110
npc_pet_pri_lightwell
Definition
pet_priest.cpp:22
npc_pet_pri_lightwell::npc_pet_pri_lightwell
npc_pet_pri_lightwell()
Definition
pet_priest.cpp:24
npc_pet_pri_lightwell::GetAI
CreatureAI * GetAI(Creature *creature) const OVERRIDE
Definition
pet_priest.cpp:44
PriestSpells
PriestSpells
Definition
pet_priest.cpp:17
SPELL_PRIEST_LIGHTWELL_CHARGES
@ SPELL_PRIEST_LIGHTWELL_CHARGES
Definition
pet_priest.cpp:18
AddSC_priest_pet_scripts
void AddSC_priest_pet_scripts()
Definition
pet_priest.cpp:50
npc_pet_pri_lightwell::npc_pet_pri_lightwellAI
Definition
pet_priest.cpp:27
npc_pet_pri_lightwell::npc_pet_pri_lightwellAI::npc_pet_pri_lightwellAI
npc_pet_pri_lightwellAI(Creature *creature)
Definition
pet_priest.cpp:28
npc_pet_pri_lightwell::npc_pet_pri_lightwellAI::EnterEvadeMode
void EnterEvadeMode() OVERRIDE
Definition
pet_priest.cpp:33
src
server
scripts
Pet
pet_priest.cpp
Generated on
for Project SkyFire Core by
1.17.0