Scripts/Naxxramas: Fixed reseting of Just Can't Get Enough achievement. Thanks to Shauren for notice
This commit is contained in:
@@ -269,8 +269,10 @@ public:
|
|||||||
boss_kelthuzadAI(Creature* c) : BossAI(c, BOSS_KELTHUZAD), spawns(c)
|
boss_kelthuzadAI(Creature* c) : BossAI(c, BOSS_KELTHUZAD), spawns(c)
|
||||||
{
|
{
|
||||||
uiFaction = me->getFaction();
|
uiFaction = me->getFaction();
|
||||||
|
instance = me->GetInstanceScript();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InstanceScript* instance;
|
||||||
uint32 Phase;
|
uint32 Phase;
|
||||||
uint32 uiGuardiansOfIcecrownTimer;
|
uint32 uiGuardiansOfIcecrownTimer;
|
||||||
uint32 uiFaction;
|
uint32 uiFaction;
|
||||||
@@ -307,6 +309,9 @@ public:
|
|||||||
|
|
||||||
FindGameObjects();
|
FindGameObjects();
|
||||||
|
|
||||||
|
if (instance)
|
||||||
|
instance->SetData(DATA_ABOMINATION_KILLED, 0);
|
||||||
|
|
||||||
if (GameObject* pKTTrigger = me->GetMap()->GetGameObject(KTTriggerGUID))
|
if (GameObject* pKTTrigger = me->GetMap()->GetGameObject(KTTriggerGUID))
|
||||||
{
|
{
|
||||||
pKTTrigger->ResetDoorOrButton();
|
pKTTrigger->ResetDoorOrButton();
|
||||||
|
|||||||
@@ -147,6 +147,26 @@ public:
|
|||||||
time_t minHorsemenDiedTime;
|
time_t minHorsemenDiedTime;
|
||||||
time_t maxHorsemenDiedTime;
|
time_t maxHorsemenDiedTime;
|
||||||
|
|
||||||
|
void Initialize()
|
||||||
|
{
|
||||||
|
GothikGateGUID = 0;
|
||||||
|
HorsemenChestGUID = 0;
|
||||||
|
SapphironGUID = 0;
|
||||||
|
uiFaerlina = 0;
|
||||||
|
uiThane = 0;
|
||||||
|
uiLady = 0;
|
||||||
|
uiBaron = 0;
|
||||||
|
uiSir = 0;
|
||||||
|
uiThaddius = 0;
|
||||||
|
uiHeigan = 0;
|
||||||
|
uiFeugen = 0;
|
||||||
|
uiStalagg = 0;
|
||||||
|
uiKelthuzad = 0;
|
||||||
|
uiKelthuzadTrigger = 0;
|
||||||
|
|
||||||
|
memset(uiPortals, 0, sizeof(uiPortals));
|
||||||
|
}
|
||||||
|
|
||||||
void OnCreatureCreate(Creature* creature)
|
void OnCreatureCreate(Creature* creature)
|
||||||
{
|
{
|
||||||
switch(creature->GetEntry())
|
switch(creature->GetEntry())
|
||||||
|
|||||||
Reference in New Issue
Block a user