fix(Scripts/Naxxramas): Re enable Portal Hub teleport requirement (#18844)
fix naxxramas portal hub trigger
This commit is contained in:
@@ -1196,7 +1196,12 @@ public:
|
|||||||
{
|
{
|
||||||
if (InstanceScript *instance = player->GetInstanceScript())
|
if (InstanceScript *instance = player->GetInstanceScript())
|
||||||
{
|
{
|
||||||
if (instance->CheckRequiredBosses(BOSS_SAPPHIRON))
|
bool AreAllWingsCleared = instance->GetBossState(BOSS_MAEXXNA) == DONE
|
||||||
|
&& (instance->GetBossState(BOSS_LOATHEB) == DONE)
|
||||||
|
&& (instance->GetBossState(BOSS_THADDIUS) == DONE)
|
||||||
|
&& (instance->GetBossState(BOSS_HORSEMAN) == DONE);
|
||||||
|
|
||||||
|
if (AreAllWingsCleared)
|
||||||
{
|
{
|
||||||
player->TeleportTo(533, sapphironEntryTP.m_positionX, sapphironEntryTP.m_positionY, sapphironEntryTP.m_positionZ, sapphironEntryTP.m_orientation);
|
player->TeleportTo(533, sapphironEntryTP.m_positionX, sapphironEntryTP.m_positionY, sapphironEntryTP.m_positionZ, sapphironEntryTP.m_orientation);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user