From 820f87f365489607dfb7a0e87d7e86c44557518f Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 24 Jan 2011 11:38:59 +0100 Subject: Core/Instances: Implemented confirmation dialog for players upon entering instance which would permanently bind the player to it, players can now choose to get saved or leave the instance Also fixes broken build --- .../Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp index c739364d23d..758bb92a1aa 100755 --- a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp @@ -395,6 +395,16 @@ class instance_icecrown_citadel : public InstanceMapScript return true; } + uint32 GetCompletedEncounterMask() const + { + uint32 mask = 0; + for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) + if (GetBossState(i) == DONE) + mask |= 1 << i; + + return mask; + } + void SetData(uint32 type, uint32 data) { switch (type) -- cgit v1.2.3