fix(Scripts/MoltenCore): Boss' runes should not respawn after 5 min o… (#13127)

fix(Scripts/MoltenCore): Boss' runes should not respawn after 5 min of boss death.

Fixes #10039
This commit is contained in:
UltraNix
2022-09-25 15:41:37 +02:00
committed by GitHub
parent 984a389d37
commit dd4fa3893e

View File

@@ -163,7 +163,7 @@ public:
if (GetBossState(linkedBossObjData[i].bossId) == DONE)
{
go->DespawnOrUnsummon();
go->DespawnOrUnsummon(0ms, Seconds(WEEK));
}
else
{
@@ -190,7 +190,7 @@ public:
if (GetBossState(linkedBossObjData[i].bossId) == DONE)
{
go->SetGoState(GO_STATE_ACTIVE);
go->UseDoorOrButton(WEEK * IN_MILLISECONDS);
}
else
{
@@ -310,13 +310,13 @@ public:
{
if (GameObject* circle = instance->GetGameObject(_circlesGUIDs[bossId]))
{
circle->DespawnOrUnsummon();
circle->DespawnOrUnsummon(0ms, Seconds(WEEK));
_circlesGUIDs[bossId].Clear();
}
if (GameObject* rune = instance->GetGameObject(_runesGUIDs[bossId]))
{
rune->SetGoState(GO_STATE_ACTIVE);
rune->UseDoorOrButton(WEEK * IN_MILLISECONDS);
_runesGUIDs[bossId].Clear();
}