Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_revelosh.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_Revelosh
8SD%Complete: 100
9SDComment:
10SDCategory: Uldaman
11EndScriptData */
12
13#include "ScriptMgr.h"
14#include "ScriptedCreature.h"
15
21
23{
24public:
25 boss_revelosh() : CreatureScript("boss_revelosh") { }
26
28 {
29 boss_reveloshAI(Creature* creature) : ScriptedAI(creature) { }
30
33
35 {
38 }
39
41 {
42 //Return since we have no target
43 if (!UpdateVictim())
44 return;
45
46 //uiLightningBoltTimer
47 if (uiLightningBoltTimer <= uiDiff)
48 {
51 } else uiLightningBoltTimer -= uiDiff;
52
53 //uiChainLightningTimer
54 if (uiChainLightningTimer <= uiDiff)
55 {
58 }
59 else uiChainLightningTimer -= uiDiff;
60
62 }
63 };
64
66 {
67 return new boss_reveloshAI(creature);
68 }
69};
70
72{
73 new boss_revelosh();
74}
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
@ SPELL_LIGHTNING_BOLT
Revelosh
@ SPELL_LIGHTNING_BOLT
@ SPELL_CHAIN_LIGHTNING
void AddSC_boss_revelosh()
@ SPELL_CHAIN_LIGHTNING
bool UpdateVictim()
CreatureScript(const char *name)
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:28
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:168
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
void UpdateAI(uint32 uiDiff) OVERRIDE
== Triggered Actions Requested ==================
boss_reveloshAI(Creature *creature)