From cd78172c7d04e96bb1392cd6729d333b49518923 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 08:01:06 -0500 Subject: *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 --- src/game/InstanceData.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game') 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); } -- cgit v1.2.3