TrinityCore
instance_the_underbog.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 "the_underbog.h"
29
31{
32public:
34
36 {
38 {
41 }
42
43 void OnUnitDeath(Unit* unit) override
44 {
45 switch (unit->GetEntry())
46 {
47 case NPC_GHAZAN:
49 break;
52 break;
53 default:
54 break;
55 }
56 }
57 };
58
60 {
62 }
63};
64
66{
68}
@ DONE
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void SetHeaders(std::string const &dataHeaders)
uint32 GetEntry() const
Definition: Object.h:161
Definition: Unit.h:627
InstanceScript * GetInstanceScript(InstanceMap *map) const override
void AddSC_instance_the_underbog()
@ DATA_SWAMPLORD_MUSELEK
Definition: the_underbog.h:32
@ DATA_GHAZAN
Definition: the_underbog.h:31
#define TheUndebogDataHeader
Definition: the_underbog.h:23
@ NPC_SWAMPLORD_MUSELEK
Definition: the_underbog.h:39
@ NPC_GHAZAN
Definition: the_underbog.h:38
#define TheUndebogScriptName
Definition: the_underbog.h:24
constexpr uint32 TheUnderbogBossCount
Definition: the_underbog.h:26