Violet Hold: Implement Defenseless Achievement
--HG-- branch : trunk
This commit is contained in:
@@ -89,6 +89,10 @@ enum Spells
|
|||||||
CYANIGOSA_SPELL_TRANSFORM = 58668,
|
CYANIGOSA_SPELL_TRANSFORM = 58668,
|
||||||
CYANIGOSA_BLUE_AURA = 47759,
|
CYANIGOSA_BLUE_AURA = 47759,
|
||||||
};
|
};
|
||||||
|
enum Achievements
|
||||||
|
{
|
||||||
|
ACHIEV_DEFENSELESS = 1816
|
||||||
|
};
|
||||||
|
|
||||||
struct instance_violet_hold : public ScriptedInstance
|
struct instance_violet_hold : public ScriptedInstance
|
||||||
{
|
{
|
||||||
@@ -139,6 +143,7 @@ struct instance_violet_hold : public ScriptedInstance
|
|||||||
bool bActive;
|
bool bActive;
|
||||||
bool bWiped;
|
bool bWiped;
|
||||||
bool bIsDoorSpellCasted;
|
bool bIsDoorSpellCasted;
|
||||||
|
bool bCrystalActivated;
|
||||||
|
|
||||||
std::list<uint8> NpcAtDoorCastingList;
|
std::list<uint8> NpcAtDoorCastingList;
|
||||||
|
|
||||||
@@ -186,6 +191,7 @@ struct instance_violet_hold : public ScriptedInstance
|
|||||||
|
|
||||||
bActive = false;
|
bActive = false;
|
||||||
bIsDoorSpellCasted = false;
|
bIsDoorSpellCasted = false;
|
||||||
|
bCrystalActivated = false;
|
||||||
|
|
||||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||||
}
|
}
|
||||||
@@ -302,6 +308,8 @@ struct instance_violet_hold : public ScriptedInstance
|
|||||||
SaveToDB();
|
SaveToDB();
|
||||||
if (GameObject* pMainDoor = instance->GetGameObject(uiMainDoor))
|
if (GameObject* pMainDoor = instance->GetGameObject(uiMainDoor))
|
||||||
pMainDoor->SetGoState(GO_STATE_ACTIVE);
|
pMainDoor->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
if (!bCrystalActivated && uiDoorIntegrity == 100)
|
||||||
|
DoCompleteAchievement(ACHIEV_DEFENSELESS);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DATA_WAVE_COUNT:
|
case DATA_WAVE_COUNT:
|
||||||
|
|||||||
Reference in New Issue
Block a user