aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTartalo <none@none>2010-06-27 22:53:35 +0200
committerTartalo <none@none>2010-06-27 22:53:35 +0200
commit068810d04506fa50a56d5c80e8bbf446908dcf30 (patch)
tree076fc1fae93a6aca93a1a7b4e52932a914d5b92e
parent4c59bf69dcfc2a58b62ce7daa8f87f5e2f503ab1 (diff)
Violet Hold: Implement Defenseless Achievement
--HG-- branch : trunk
-rw-r--r--src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp
index b5c69003024..fe7b777d9db 100644
--- a/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp
+++ b/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp
@@ -89,6 +89,10 @@ enum Spells
CYANIGOSA_SPELL_TRANSFORM = 58668,
CYANIGOSA_BLUE_AURA = 47759,
};
+enum Achievements
+{
+ ACHIEV_DEFENSELESS = 1816
+};
struct instance_violet_hold : public ScriptedInstance
{
@@ -139,6 +143,7 @@ struct instance_violet_hold : public ScriptedInstance
bool bActive;
bool bWiped;
bool bIsDoorSpellCasted;
+ bool bCrystalActivated;
std::list<uint8> NpcAtDoorCastingList;
@@ -186,6 +191,7 @@ struct instance_violet_hold : public ScriptedInstance
bActive = false;
bIsDoorSpellCasted = false;
+ bCrystalActivated = false;
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
}
@@ -302,6 +308,8 @@ struct instance_violet_hold : public ScriptedInstance
SaveToDB();
if (GameObject* pMainDoor = instance->GetGameObject(uiMainDoor))
pMainDoor->SetGoState(GO_STATE_ACTIVE);
+ if (!bCrystalActivated && uiDoorIntegrity == 100)
+ DoCompleteAchievement(ACHIEV_DEFENSELESS);
}
break;
case DATA_WAVE_COUNT: