Entities/Creature: Add arg2 to DespawnOrUnsummon to allow overriding respawn time. This matches changes that will be merged as part of dynamic spawning, allowing scripts to transition early.
(cherry picked from commit 4bcc8078d734ccf166533e504db703ded6968339)
This commit is contained in:
@@ -562,16 +562,7 @@ void BossAI::_DespawnAtEvade(uint32 delayToRespawn, Creature* who)
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 corpseDelay = who->GetCorpseDelay();
|
||||
uint32 respawnDelay = who->GetRespawnDelay();
|
||||
|
||||
who->SetCorpseDelay(1);
|
||||
who->SetRespawnDelay(delayToRespawn - 1);
|
||||
|
||||
who->DespawnOrUnsummon();
|
||||
|
||||
who->SetCorpseDelay(corpseDelay);
|
||||
who->SetRespawnDelay(respawnDelay);
|
||||
me->DespawnOrUnsummon(0, Seconds(delayToRespawn));
|
||||
|
||||
if (instance && who == me)
|
||||
instance->SetBossState(_bossId, FAIL);
|
||||
|
||||
Reference in New Issue
Block a user