TrinityCore
Loading...
Searching...
No Matches
pet_priest.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Ordered alphabetically using scriptname.
20 * Scriptnames of files in this file should be prefixed with "npc_pet_pri_".
21 */
22
23#include "ScriptMgr.h"
24#include "ScriptedCreature.h"
25#include "PassiveAI.h"
26#include "PetAI.h"
27
34
36{
38 {
40 }
41
42 void EnterEvadeMode(EvadeReason /*why*/) override
43 {
44 if (!me->IsAlive())
45 return;
46
47 me->CombatStop(true);
50 }
51};
52
54{
55 npc_pet_pri_shadowfiend(Creature* creature) : PetAI(creature) { }
56
57 void IsSummonedBy(WorldObject* summonerWO) override
58 {
59 Unit* summoner = summonerWO->ToUnit();
60 if (!summoner)
61 return;
62
65 }
66};
67
#define RegisterCreatureAI(ai_name)
Definition ScriptMgr.h:1139
Creature *const me
Definition CreatureAI.h:82
void EngagementOver()
void ResetPlayerDamageReq()
Definition Creature.h:323
static Unit * ToUnit(Object *o)
Definition Object.h:192
Definition PetAI.h:30
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:243
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:106
Definition Unit.h:769
bool IsAlive() const
Definition Unit.h:1234
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:4535
void CombatStop(bool includingCast=false, bool mutualPvP=true)
Definition Unit.cpp:5691
PriestSpells
@ SPELL_PRIEST_SHADOWFIEND_DEATH
@ SPELL_PRIEST_LIGHTWELL_CHARGES
@ SPELL_PRIEST_GLYPH_OF_SHADOWFIEND
void AddSC_priest_pet_scripts()
void EnterEvadeMode(EvadeReason) override
npc_pet_pri_lightwell(Creature *creature)
void IsSummonedBy(WorldObject *summonerWO) override
npc_pet_pri_shadowfiend(Creature *creature)