TrinityCore
boss_lord_overheat.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 "ScriptedCreature.h"
19#include "ScriptMgr.h"
20#include "the_stockade.h"
21
23{
24 SPELL_FIREBALL = 12466, // starts 1-2 secs from pull
25 SPELL_OVERHEAT = 86633, // probably cast every 10 secs, need to confirm.
26 SPELL_RAIN_OF_FIRE = 86636 // probably cast every 10 secs, need to confirm
27};
28
30{
34};
35
36enum Says
37{
38 SAY_PULL = 0, // Yell: ALL MUST BURN!
39 SAY_DEATH = 1 // Yell: FIRE... EXTINGUISHED!
40};
41
42// Lord Overheat - 46264
44{
46
47 void JustEngagedWith(Unit* who) override
48 {
50
52
56 }
57
58 void JustDied(Unit* killer) override
59 {
60 BossAI::JustDied(killer);
61
63 }
64
65 void ExecuteEvent(uint32 eventId) override
66 {
67 switch (eventId)
68 {
69 case EVENT_FIREBALL:
71 events.Repeat(2s);
72 break;
73 case EVENT_OVERHEAT:
74 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true))
75 DoCast(target, SPELL_OVERHEAT);
76 events.Repeat(9s, 10s);
77 break;
80 events.Repeat(15s, 20s);
81 break;
82 default:
83 break;
84 }
85 }
86};
87
89{
91}
uint32_t uint32
Definition: Define.h:142
Spells
Definition: PlayerAI.cpp:32
Says
@ SAY_DEATH
@ SAY_PULL
@ SPELL_OVERHEAT
@ SPELL_RAIN_OF_FIRE
@ SPELL_FIREBALL
void AddSC_boss_lord_overheat()
@ EVENT_FIREBALL
@ EVENT_RAIN_OF_FIRE
@ EVENT_OVERHEAT
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
EventMap events
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:56
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
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:79
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.h:161
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:89
Definition: Unit.h:627
boss_lord_overheat(Creature *creature)
void ExecuteEvent(uint32 eventId) override
void JustDied(Unit *killer) override
void JustEngagedWith(Unit *who) override
@ DATA_LORD_OVERHEAT
Definition: the_stockade.h:31
#define RegisterStormwindStockadesAI(AI)
Definition: the_stockade.h:50