mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user