Project SkyFire Core
SkyFire 5.4.8 server core API documentation
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
20
22{
23 public:
24 npc_pet_pri_lightwell() : CreatureScript("npc_pet_pri_lightwell") { }
25
27 {
32
34 {
35 if (!me->IsAlive())
36 return;
37
38 me->DeleteThreatList();
39 me->CombatStop(true);
40 me->ResetPlayerDamageReq();
41 }
42 };
43
45 {
46 return new npc_pet_pri_lightwellAI(creature);
47 }
48};
49
#define OVERRIDE
Definition Define.h:60
Creature *const me
Definition CreatureAI.h:56
CreatureScript(const char *name)
PassiveAI(Creature *c)
Definition PassiveAI.cpp:10
void DoCast(uint32 spellId)
Definition UnitAI.cpp:110
CreatureAI * GetAI(Creature *creature) const OVERRIDE
PriestSpells
@ SPELL_PRIEST_LIGHTWELL_CHARGES
void AddSC_priest_pet_scripts()