TrinityCore
Loading...
Searching...
No Matches
boss_death_knight_darkreaver.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
/* ScriptData
19
SDName: Boss_Death_knight_darkreaver
20
SD%Complete: 100
21
SDComment:
22
SDCategory: Scholomance
23
EndScriptData */
24
25
#include "
ScriptMgr.h
"
26
#include "
scholomance.h
"
27
#include "
ScriptedCreature.h
"
28
29
class
boss_death_knight_darkreaver
:
public
CreatureScript
30
{
31
public
:
32
boss_death_knight_darkreaver
() :
CreatureScript
(
"boss_death_knight_darkreaver"
) { }
33
34
CreatureAI
*
GetAI
(
Creature
* creature)
const override
35
{
36
return
GetScholomanceAI<boss_death_knight_darkreaverAI>(creature);
37
}
38
39
struct
boss_death_knight_darkreaverAI
:
public
ScriptedAI
40
{
41
boss_death_knight_darkreaverAI
(
Creature
* creature) :
ScriptedAI
(creature) { }
42
43
void
Reset
()
override
44
{
45
}
46
47
void
DamageTaken
(
Unit
*
/*done_by*/
,
uint32
& damage,
DamageEffectType
/*damageType*/
,
SpellInfo
const
*
/*spellInfo = nullptr*/
)
override
48
{
49
if
(
me
->
GetHealth
() <= damage)
50
DoCast
(
me
, 23261,
true
);
//Summon Darkreaver's Fallen Charger
51
}
52
53
void
JustEngagedWith
(
Unit
*
/*who*/
)
override
54
{
55
}
56
};
57
58
};
59
60
void
AddSC_boss_death_knight_darkreaver
()
61
{
62
new
boss_death_knight_darkreaver
();
63
}
uint32
uint32_t uint32
Definition
Define.h:154
ScriptMgr.h
ScriptedCreature.h
DamageEffectType
DamageEffectType
Definition
UnitDefines.h:154
AddSC_boss_death_knight_darkreaver
void AddSC_boss_death_knight_darkreaver()
Definition
boss_death_knight_darkreaver.cpp:60
CreatureAI
Definition
CreatureAI.h:61
CreatureAI::me
Creature *const me
Definition
CreatureAI.h:63
CreatureScript
Definition
ScriptMgr.h:441
Creature
Definition
Creature.h:82
SpellInfo
Definition
SpellInfo.h:324
UnitAI::DoCast
SpellCastResult DoCast(uint32 spellId)
Definition
UnitAI.cpp:89
Unit
Definition
Unit.h:635
Unit::GetHealth
uint64 GetHealth() const
Definition
Unit.h:788
boss_death_knight_darkreaver
Definition
boss_death_knight_darkreaver.cpp:30
boss_death_knight_darkreaver::GetAI
CreatureAI * GetAI(Creature *creature) const override
Definition
boss_death_knight_darkreaver.cpp:34
boss_death_knight_darkreaver::boss_death_knight_darkreaver
boss_death_knight_darkreaver()
Definition
boss_death_knight_darkreaver.cpp:32
scholomance.h
ScriptedAI
Definition
ScriptedCreature.h:134
boss_death_knight_darkreaver::boss_death_knight_darkreaverAI
Definition
boss_death_knight_darkreaver.cpp:40
boss_death_knight_darkreaver::boss_death_knight_darkreaverAI::DamageTaken
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
Definition
boss_death_knight_darkreaver.cpp:47
boss_death_knight_darkreaver::boss_death_knight_darkreaverAI::Reset
void Reset() override
Definition
boss_death_knight_darkreaver.cpp:43
boss_death_knight_darkreaver::boss_death_knight_darkreaverAI::boss_death_knight_darkreaverAI
boss_death_knight_darkreaverAI(Creature *creature)
Definition
boss_death_knight_darkreaver.cpp:41
boss_death_knight_darkreaver::boss_death_knight_darkreaverAI::JustEngagedWith
void JustEngagedWith(Unit *) override
Definition
boss_death_knight_darkreaver.cpp:53
server
scripts
EasternKingdoms
Scholomance
boss_death_knight_darkreaver.cpp
Generated on Sun May 10 2026 02:09:08 for TrinityCore by
1.9.8