diff options
| author | blinkysc <37940565+blinkysc@users.noreply.github.com> | 2025-10-04 17:24:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-04 19:24:55 -0300 |
| commit | 2afcd037c7a8fcef6d330c59b8bc4bc8a17a86d2 (patch) | |
| tree | e1ee02899d8da4e7dea7706e10cd1c529878e97e /src | |
| parent | 973aec9928f8d441b6a8e7e98703a9ba1c3e6644 (diff) | |
fix(Script/Sunwell): Sinister reflection delays 5 seconds before set in combat (#22939)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp index ddd75f48af..221f15a236 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp @@ -178,7 +178,12 @@ struct npc_kiljaeden_controller : public NullCreatureAI { summons.Summon(summon); if (summon->GetEntry() == NPC_SINISTER_REFLECTION) - summon->SetInCombatWithZone(); + { + summon->m_Events.AddEventAtOffset([summon] { + if (summon && summon->IsAlive() && !summon->IsInCombat()) + summon->SetInCombatWithZone(); + }, 5s); + } else if (summon->GetEntry() == NPC_KALECGOS_KJ) summon->setActive(true); } |
