Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
boss_moira_bronzebeard.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
10{
11 SPELL_HEAL = 10917,
12 SPELL_RENEW = 10929,
13 SPELL_SHIELD = 10901,
17};
18
20{
21public:
22 boss_moira_bronzebeard() : CreatureScript("boss_moira_bronzebeard") { }
23
25 {
26 return new boss_moira_bronzebeardAI(creature);
27 }
28
30 {
32 {
33 Heal_Timer = 0;
36 Smite_Timer = 0;
37 }
38
40 {
41 Heal_Timer = 12000; //These times are probably wrong
42 MindBlast_Timer = 16000;
44 Smite_Timer = 8000;
45 }
46
47 void EnterCombat(Unit* /*who*/) OVERRIDE { }
48
50 {
51 //Return since we have no target
52 if (!UpdateVictim())
53 return;
54
55 //MindBlast_Timer
56 if (MindBlast_Timer <= diff)
57 {
59 MindBlast_Timer = 14000;
60 } else MindBlast_Timer -= diff;
61
62 //ShadowWordPain_Timer
63 if (ShadowWordPain_Timer <= diff)
64 {
67 } else ShadowWordPain_Timer -= diff;
68
69 //Smite_Timer
70 if (Smite_Timer <= diff)
71 {
73 Smite_Timer = 10000;
74 } else Smite_Timer -= diff;
75 }
76
77 private:
82 };
83};
84
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
@ SPELL_SHADOWWORDPAIN
void AddSC_boss_moira_bronzebeard()
bool UpdateVictim()
CreatureScript(const char *name)
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:168
Definition Unit.h:1367
CreatureAI * GetAI(Creature *creature) const OVERRIDE
#define SPELL_SMITE
ScriptedAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================