TrinityCore
instance_maraudon.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/*
19This placeholder for the instance is needed for dungeon finding to be able
20to give credit after the boss defined in lastEncounterDungeon is killed.
21Without it, the party doing random dungeon won't get satchel of spoils and
22gets instead the deserter debuff.
23*/
24
25#include "ScriptMgr.h"
26#include "InstanceScript.h"
27#include "Unit.h"
28#include "maraudon.h"
29
30static constexpr DungeonEncounterData Encounters[] =
31{
32 { BOSS_NOXXION, { { 422 } } },
33 { BOSS_RAZORLASH, { { 423 } } },
34 { BOSS_TINKERER_GIZLOCK, { { 427 } } },
35 { BOSS_LORD_VYLETONGUE, { { 424 } } },
36 { BOSS_CELEBRAS_THE_CURSED, { { 425 } } },
37 { BOSS_LANDSLIDE, { { 426 } } },
38 { BOSS_ROTGRIP, { { 428 } } },
39 { BOSS_PRINCESS_THERADRAS, { { 429 } } },
40};
41
43{
44public:
46
48 {
50 }
51
53 {
55 {
56 SetHeaders("Maraudon_v1");
59 }
60
61 void OnUnitDeath(Unit* unit) override
62 {
63 switch (unit->GetEntry())
64 {
69 default: break;
70 }
71 }
72 };
73};
74
76{
78}
@ DONE
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void LoadDungeonEncounterData(T const &encounters)
void SetHeaders(std::string const &dataHeaders)
uint32 GetEntry() const
Definition: Object.h:161
Definition: Unit.h:627
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr DungeonEncounterData Encounters[]
void AddSC_instance_maraudon()
#define MAX_ENCOUNTER
@ BOSS_TINKERER_GIZLOCK
Definition: maraudon.h:29
@ BOSS_PRINCESS_THERADRAS
Definition: maraudon.h:34
@ BOSS_RAZORLASH
Definition: maraudon.h:28
@ BOSS_LORD_VYLETONGUE
Definition: maraudon.h:30
@ BOSS_CELEBRAS_THE_CURSED
Definition: maraudon.h:31
@ BOSS_NOXXION
Definition: maraudon.h:27
@ BOSS_LANDSLIDE
Definition: maraudon.h:32
@ BOSS_ROTGRIP
Definition: maraudon.h:33
#define MaraudonScriptName
Definition: maraudon.h:23
@ NPC_TINKERER_GIZLOCK
Definition: maraudon.h:42
@ NPC_RAZORLASH
Definition: maraudon.h:41
@ NPC_LORD_VYLETONGUE
Definition: maraudon.h:43
@ NPC_ROTGRIP
Definition: maraudon.h:44