mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/Creature): Allow temp summons to respawn when despawning on … (#21363)
This commit is contained in:
@@ -1161,17 +1161,6 @@ public:
|
||||
{
|
||||
IsSindragosaIntroDone = true;
|
||||
HandleDropAttempt();
|
||||
if (instance->IsHeroic())
|
||||
{
|
||||
if (HeroicAttempts)
|
||||
{
|
||||
Events.ScheduleEvent(EVENT_RESPAWN_SINDRAGOSA, 30s);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Events.ScheduleEvent(EVENT_RESPAWN_SINDRAGOSA, 30s);
|
||||
}
|
||||
}
|
||||
if (state == DONE && !instance->IsHeroic() && LichKingHeroicAvailable)
|
||||
{
|
||||
|
||||
@@ -369,6 +369,9 @@ public:
|
||||
break;
|
||||
case NPC_ALGALON:
|
||||
m_uiAlgalonGUID = creature->GetGUID();
|
||||
|
||||
if (!m_algalonTimer)
|
||||
creature->DespawnOrUnsummon();
|
||||
break;
|
||||
case NPC_HARPOON_FIRE_STATE:
|
||||
{
|
||||
@@ -811,17 +814,6 @@ public:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user