Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_timmy_the_cruel.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/* ScriptData
7SDName: boss_timmy_the_cruel
8SD%Complete: 100
9SDComment:
10SDCategory: Stratholme
11EndScriptData */
12
13#include "ScriptMgr.h"
14#include "ScriptedCreature.h"
15
16enum Says
17{
19};
20
22{
24};
25
27{
28public:
29 boss_timmy_the_cruel() : CreatureScript("boss_timmy_the_cruel") { }
30
32 {
33 return new boss_timmy_the_cruelAI(creature);
34 }
35
37 {
38 boss_timmy_the_cruelAI(Creature* creature) : ScriptedAI(creature) { }
39
42
44 {
45 RavenousClaw_Timer = 10000;
46 HasYelled = false;
47 }
48
49 void EnterCombat(Unit* /*who*/) OVERRIDE
50 {
51 if (!HasYelled)
52 {
54 HasYelled = true;
55 }
56 }
57
59 {
60 //Return since we have no target
61 if (!UpdateVictim())
62 return;
63
64 //RavenousClaw
65 if (RavenousClaw_Timer <= diff)
66 {
67 //Cast
69 //15 seconds until we should cast this again
70 RavenousClaw_Timer = 15000;
71 } else RavenousClaw_Timer -= diff;
72
74 }
75 };
76};
77
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
@ SPELL_RAVENOUSCLAW
void AddSC_boss_timmy_the_cruel()
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
bool UpdateVictim()
CreatureScript(const char *name)
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:28
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:168
Definition Unit.h:1367
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================