Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
boss_commander_stoutbeard.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
/* Script Data Start
7
SDName: Boss Commander Stoutbeard
8
SDAuthor: LordVanMartin
9
SD%Complete:
10
SDComment: Only Horde Heroic
11
SDCategory:
12
Script Data End */
13
14
#include "
ScriptMgr.h
"
15
#include "
ScriptedCreature.h
"
16
17
enum
CommanderStoutbeard
18
{
19
SPELL_BATTLE_SHOUT
= 31403,
20
SPELL_CHARGE
= 60067,
21
SPELL_FRIGHTENING_SHOUT
= 19134,
22
SPELL_WHIRLWIND_1
= 38619,
23
SPELL_WHIRLWIND_2
= 38618
24
};
25
26
class
boss_commander_stoutbeard
:
public
CreatureScript
27
{
28
public
:
29
boss_commander_stoutbeard
() :
CreatureScript
(
"boss_commander_stoutbeard"
) { }
30
31
CreatureAI
*
GetAI
(
Creature
* creature)
const
OVERRIDE
32
{
33
return
new
boss_commander_stoutbeardAI
(creature);
34
}
35
36
struct
boss_commander_stoutbeardAI
:
public
ScriptedAI
37
{
38
boss_commander_stoutbeardAI
(
Creature
* creature) :
ScriptedAI
(creature) { }
39
40
void
Reset
()
OVERRIDE
{ }
41
void
AttackStart
(
Unit
*
/*who*/
)
OVERRIDE
{ }
42
void
MoveInLineOfSight
(
Unit
*
/*who*/
)
OVERRIDE
{ }
43
44
void
UpdateAI
(
uint32
/*diff*/
)
OVERRIDE
45
{
46
//Return since we have no target
47
if
(!
UpdateVictim
())
48
return
;
49
50
DoMeleeAttackIfReady
();
51
}
52
};
53
};
54
55
void
AddSC_boss_commander_stoutbeard
()
56
{
57
new
boss_commander_stoutbeard
();
58
}
uint32
std::uint32_t uint32
Definition
Define.h:77
OVERRIDE
#define OVERRIDE
Definition
Define.h:60
ScriptMgr.h
ScriptedCreature.h
SPELL_CHARGE
@ SPELL_CHARGE
Definition
alterac_valley.cpp:11
SPELL_WHIRLWIND_1
@ SPELL_WHIRLWIND_1
Definition
boss_commander_kolurg.cpp:22
SPELL_WHIRLWIND_2
@ SPELL_WHIRLWIND_2
Definition
boss_commander_kolurg.cpp:23
CommanderStoutbeard
CommanderStoutbeard
Definition
boss_commander_stoutbeard.cpp:18
AddSC_boss_commander_stoutbeard
void AddSC_boss_commander_stoutbeard()
Definition
boss_commander_stoutbeard.cpp:55
SPELL_FRIGHTENING_SHOUT
@ SPELL_FRIGHTENING_SHOUT
Definition
boss_galvangar.cpp:12
SPELL_BATTLE_SHOUT
@ SPELL_BATTLE_SHOUT
Definition
boss_priestess_delrissa.cpp:869
CreatureAI
Definition
CreatureAI.h:54
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
Unit
Definition
Unit.h:1367
boss_commander_stoutbeard
Definition
boss_commander_stoutbeard.cpp:27
boss_commander_stoutbeard::GetAI
CreatureAI * GetAI(Creature *creature) const OVERRIDE
Definition
boss_commander_stoutbeard.cpp:31
boss_commander_stoutbeard::boss_commander_stoutbeard
boss_commander_stoutbeard()
Definition
boss_commander_stoutbeard.cpp:29
ScriptedAI::ScriptedAI
ScriptedAI(Creature *creature)
Definition
ScriptedCreature.cpp:85
boss_commander_stoutbeard::boss_commander_stoutbeardAI
Definition
boss_commander_stoutbeard.cpp:37
boss_commander_stoutbeard::boss_commander_stoutbeardAI::boss_commander_stoutbeardAI
boss_commander_stoutbeardAI(Creature *creature)
Definition
boss_commander_stoutbeard.cpp:38
boss_commander_stoutbeard::boss_commander_stoutbeardAI::AttackStart
void AttackStart(Unit *) OVERRIDE
Definition
boss_commander_stoutbeard.cpp:41
boss_commander_stoutbeard::boss_commander_stoutbeardAI::Reset
void Reset() OVERRIDE
Definition
boss_commander_stoutbeard.cpp:40
boss_commander_stoutbeard::boss_commander_stoutbeardAI::MoveInLineOfSight
void MoveInLineOfSight(Unit *) OVERRIDE
Definition
boss_commander_stoutbeard.cpp:42
boss_commander_stoutbeard::boss_commander_stoutbeardAI::UpdateAI
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
Definition
boss_commander_stoutbeard.cpp:44
src
server
scripts
Northrend
Nexus
Nexus
boss_commander_stoutbeard.cpp
Generated on
for Project SkyFire Core by
1.17.0