mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Scripts/Ulduar): Respawn Algalon on wipes (#17344)
This commit is contained in:
@@ -366,6 +366,9 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(TYPE_ALGALON, FAIL);
|
||||
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
}
|
||||
|
||||
|
||||
@@ -786,6 +786,18 @@ public:
|
||||
go->SetGoState(data == IN_PROGRESS ? GO_STATE_ACTIVE : GO_STATE_READY);
|
||||
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;
|
||||
|
||||
// Achievement
|
||||
@@ -1109,6 +1121,8 @@ public:
|
||||
|
||||
void Update(uint32 diff) override
|
||||
{
|
||||
InstanceScript::Update(diff);
|
||||
|
||||
if (_events.Empty())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user