fix(Scripts/Ulduar): Respawn Algalon on wipes (#17344)
This commit is contained in:
@@ -366,6 +366,9 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_pInstance)
|
||||||
|
m_pInstance->SetData(TYPE_ALGALON, FAIL);
|
||||||
|
|
||||||
ScriptedAI::EnterEvadeMode(why);
|
ScriptedAI::EnterEvadeMode(why);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -786,6 +786,18 @@ public:
|
|||||||
go->SetGoState(data == IN_PROGRESS ? GO_STATE_ACTIVE : GO_STATE_READY);
|
go->SetGoState(data == IN_PROGRESS ? GO_STATE_ACTIVE : GO_STATE_READY);
|
||||||
go->EnableCollision(false);
|
go->EnableCollision(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data == FAIL)
|
||||||
|
{
|
||||||
|
scheduler.Schedule(5s, [this](TaskContext)
|
||||||
|
{
|
||||||
|
if (m_algalonTimer && (m_algalonTimer <= 60 || m_algalonTimer == TIMER_ALGALON_TO_SUMMON))
|
||||||
|
{
|
||||||
|
instance->SummonCreature(NPC_ALGALON, AlgalonLandPos);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Achievement
|
// Achievement
|
||||||
@@ -1109,6 +1121,8 @@ public:
|
|||||||
|
|
||||||
void Update(uint32 diff) override
|
void Update(uint32 diff) override
|
||||||
{
|
{
|
||||||
|
InstanceScript::Update(diff);
|
||||||
|
|
||||||
if (_events.Empty())
|
if (_events.Empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user