Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_thorim.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#include "ScriptMgr.h"
7#include "ScriptedCreature.h"
8#include "ulduar.h"
9
28
30{
31 public:
32 boss_thorim() : CreatureScript("boss_thorim") { }
33
34 struct boss_thorimAI : public BossAI
35 {
36 boss_thorimAI(Creature* creature) : BossAI(creature, BOSS_THORIM)
37 {
38 }
39
41 {
42 _Reset();
43 }
44
50
52 {
53 if (who->GetTypeId() == TypeID::TYPEID_PLAYER)
55 }
56
57 void JustDied(Unit* /*killer*/) OVERRIDE
58 {
60 _JustDied();
61 }
62
63 void EnterCombat(Unit* /*who*/) OVERRIDE
64 {
67 }
68
70 {
71 if (!UpdateVictim())
72 return;
73 //SPELLS @todo
74
75 //
77
79 }
80 };
81
83 {
84 return GetUlduarAI<boss_thorimAI>(creature);
85 }
86};
87
89{
90 new boss_thorim();
91}
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
@ TYPEID_PLAYER
Definition Object.h:55
@ SAY_BERSERK
@ SAY_SLAY
#define SAY_DEATH
#define SAY_AGGRO
@ SAY_DEATH
@ SAY_WIPE
@ SAY_SPECIAL_3
@ SAY_SPECIAL_1
@ SAY_AGGRO
@ SAY_END_HARD_3
@ SAY_END_NORMAL_3
@ SAY_SPECIAL_2
@ SAY_END_NORMAL_2
@ SAY_END_NORMAL_1
@ SAY_SLAY
@ SAY_END_HARD_1
@ SAY_JUMPDOWN
@ SAY_END_HARD_2
void AddSC_boss_thorim()
BossAI(Creature *creature, uint32 bossId)
void _EnterCombat()
bool _EnterEvadeMode()
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
bool UpdateVictim()
CreatureScript(const char *name)
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:28
Definition Unit.h:1367
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool EnterEvadeIfOutOfCombatArea(uint32 const diff)
boss_thorimAI(Creature *creature)
void EnterEvadeMode() OVERRIDE
void EnterCombat(Unit *) OVERRIDE
void KilledUnit(Unit *who) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void JustDied(Unit *) OVERRIDE
@ BOSS_THORIM
Definition ulduar.h:29
AI * GetUlduarAI(T *obj)
Definition ulduar.h:336