TrinityCore
boss_scorn.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 "scarlet_monastery.h"
19#include "ScriptedCreature.h"
20#include "ScriptMgr.h"
21
23{
27 SPELL_FROSTNOVA = 15531
28};
29
31{
36};
37
38struct boss_scorn : public BossAI
39{
40 boss_scorn(Creature* creature) : BossAI(creature, DATA_SCORN) { }
41
42 void JustEngagedWith(Unit* who) override
43 {
49 }
50
51 void ExecuteEvent(uint32 eventId) override
52 {
53 switch (eventId)
54 {
55 case EVENT_LICH_SLAP:
57 events.Repeat(45s);
58 break;
61 events.Repeat(20s);
62 break;
63 case EVENT_MIND_FLAY:
65 events.Repeat(20s);
66 break;
69 events.Repeat(15s);
70 break;
71 default:
72 break;
73 }
74 }
75};
76
78{
80}
uint32_t uint32
Definition: Define.h:142
ScornSpells
Definition: boss_scorn.cpp:23
@ SPELL_FROSTBOLT_VOLLEY
Definition: boss_scorn.cpp:25
@ SPELL_MINDFLAY
Definition: boss_scorn.cpp:26
@ SPELL_LICHSLAP
Definition: boss_scorn.cpp:24
@ SPELL_FROSTNOVA
Definition: boss_scorn.cpp:27
ScornEvents
Definition: boss_scorn.cpp:31
@ EVENT_LICH_SLAP
Definition: boss_scorn.cpp:32
@ EVENT_FROSTBOLT_VOLLEY
Definition: boss_scorn.cpp:33
@ EVENT_FROST_NOVA
Definition: boss_scorn.cpp:35
@ EVENT_MIND_FLAY
Definition: boss_scorn.cpp:34
void AddSC_boss_scorn()
Definition: boss_scorn.cpp:77
void JustEngagedWith(Unit *who) override
EventMap events
void Repeat(Milliseconds time)
Definition: EventMap.cpp:63
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
Definition: EventMap.cpp:36
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.cpp:180
Definition: Unit.h:627
@ DATA_SCORN
#define RegisterScarletMonasteryCreatureAI(ai)
void JustEngagedWith(Unit *who) override
Definition: boss_scorn.cpp:42
void ExecuteEvent(uint32 eventId) override
Definition: boss_scorn.cpp:51
boss_scorn(Creature *creature)
Definition: boss_scorn.cpp:40