if players now wipe the door will Reset.

This commit is contained in:
talamortis
2018-03-15 13:08:02 +00:00
parent e0b8b58cca
commit 62977e6408

View File

@@ -1,4 +1,4 @@
/*
/*
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
*/
@@ -80,13 +80,9 @@ public:
BossAI::Reset();
events.Reset();
summons.DespawnAll();
if (pInstance)
{
if (pInstance->GetData(BOSS_FAERLINA) == DONE)
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_MAEXXNA_GATE)))
go->SetGoState(GO_STATE_ACTIVE);
}
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_MAEXXNA_GATE)))
go->SetGoState(GO_STATE_ACTIVE);
}
void EnterCombat(Unit * who)