aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 08:01:06 -0500
committermegamage <none@none>2009-08-12 08:01:06 -0500
commitcd78172c7d04e96bb1392cd6729d333b49518923 (patch)
tree96bb71d80b75aa36d99e78bf28c1ad1643a0f8b5 /src/game
parent1bdc65e5ee06e13d7b898feccdcbec49ba1299f0 (diff)
*Do not allow to enter frostwyrm wing before killing all previous bosses. If you do not like it, simply do not apply the sql.
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/InstanceData.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/InstanceData.h b/src/game/InstanceData.h
index fac766c761e..d06043ff07d 100644
--- a/src/game/InstanceData.h
+++ b/src/game/InstanceData.h
@@ -150,6 +150,7 @@ class TRINITY_DLL_SPEC InstanceData : public ZoneScript
void DoRespawnGameObject(uint64 uiGuid, uint32 uiTimeToDespawn = MINUTE);
virtual bool SetBossState(uint32 id, EncounterState state);
+ EncounterState GetBossState(uint32 id) const { return id < bosses.size() ? bosses[id].state : TO_BE_DECIDED; }
const BossBoundaryMap * GetBossBoundary(uint32 id) const { return id < bosses.size() ? &bosses[id].boundary : NULL; }
protected:
void SetBossNumber(uint32 number) { bosses.resize(number); }