Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_scorn.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_Scorn
8SD%Complete: 100
9SDComment:
10SDCategory: Scarlet Monastery
11EndScriptData */
12
13#include "ScriptMgr.h"
14#include "ScriptedCreature.h"
15
23
25{
26public:
27 boss_scorn() : CreatureScript("boss_scorn") { }
28
30 {
31 return new boss_scornAI(creature);
32 }
33
34 struct boss_scornAI : public ScriptedAI
35 {
36 boss_scornAI(Creature* creature) : ScriptedAI(creature) { }
37
42
44 {
45 LichSlap_Timer = 45000;
47 MindFlay_Timer = 30000;
48 FrostNova_Timer = 30000;
49 }
50
51 void EnterCombat(Unit* /*who*/) OVERRIDE { }
52
54 {
55 if (!UpdateVictim())
56 return;
57
58 //LichSlap_Timer
59 if (LichSlap_Timer <= diff)
60 {
62 LichSlap_Timer = 45000;
63 }
64 else LichSlap_Timer -= diff;
65
66 //FrostboltVolley_Timer
67 if (FrostboltVolley_Timer <= diff)
68 {
71 }
72 else FrostboltVolley_Timer -= diff;
73
74 //MindFlay_Timer
75 if (MindFlay_Timer <= diff)
76 {
78 MindFlay_Timer = 20000;
79 }
80 else MindFlay_Timer -= diff;
81
82 //FrostNova_Timer
83 if (FrostNova_Timer <= diff)
84 {
86 FrostNova_Timer = 15000;
87 }
88 else FrostNova_Timer -= diff;
89
91 }
92 };
93};
94
96{
97 new boss_scorn();
98}
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
@ SPELL_MINDFLAY
@ SPELL_LICHSLAP
@ SPELL_FROSTBOLTVOLLEY
@ SPELL_FROSTNOVA
void AddSC_boss_scorn()
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)
boss_scornAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void Reset() OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================