TrinityCore
boss_moira_bronzebeard.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "ScriptMgr.h"
19#include "blackrock_depths.h"
20#include "ScriptedCreature.h"
21
23{
24 SPELL_HEAL = 10917,
25 SPELL_RENEW = 10929,
26 SPELL_SHIELD = 10901,
29 SPELL_SMITE = 10934
30};
31
33{
37 EVENT_HEAL = 4 // not used atm
38};
39
41{
42 public:
43 boss_moira_bronzebeard() : CreatureScript("boss_moira_bronzebeard") { }
44
46 {
47 boss_moira_bronzebeardAI(Creature* creature) : ScriptedAI(creature) { }
48
49 void Reset() override
50 {
51 _events.Reset();
52 }
53
54 void JustEngagedWith(Unit* /*who*/) override
55 {
56 //_events.ScheduleEvent(EVENT_HEAL, 12s); // not used atm // These times are probably wrong
60 }
61
62 void UpdateAI(uint32 diff) override
63 {
64 if (!UpdateVictim())
65 return;
66
67 _events.Update(diff);
68
69 while (uint32 eventId = _events.ExecuteEvent())
70 {
71 switch (eventId)
72 {
73 case EVENT_MINDBLAST:
76 break;
80 break;
81 case EVENT_SMITE:
84 break;
85 default:
86 break;
87 }
88 }
89 }
90
91 private:
93 };
94
95 CreatureAI* GetAI(Creature* creature) const override
96 {
97 return GetBlackrockDepthsAI<boss_moira_bronzebeardAI>(creature);
98 }
99};
100
102{
104}
uint32_t uint32
Definition: Define.h:142
Spells
Definition: PlayerAI.cpp:32
@ SPELL_SHADOWWORDPAIN
void AddSC_boss_moira_bronzebeard()
@ EVENT_SHADOW_WORD_PAIN
bool UpdateVictim()
Definition: CreatureAI.cpp:245
uint32 ExecuteEvent()
Definition: EventMap.cpp:73
void Update(uint32 time)
Definition: EventMap.h:56
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
Definition: EventMap.cpp:36
void Reset()
Definition: EventMap.cpp:21
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.cpp:180
Definition: Unit.h:627
CreatureAI * GetAI(Creature *creature) const override