From 88342576e070476f4866a82873bc9b1080e1ab99 Mon Sep 17 00:00:00 2001 From: Rocco Silipo <108557877+Rorschach91@users.noreply.github.com> Date: Sun, 13 Jul 2025 08:50:50 +0200 Subject: [PATCH] fix (Script/Scarlet Enclave) Named Npcs can no longer be attacked after the end of the The Light of Dawn battle. (#22463) --- src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp index 89afbbfc4..bfd1d01b9 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp @@ -700,6 +700,7 @@ public: { summon->CombatStop(true); summon->GetThreatMgr().ClearAllThreat(); + summon->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE); summon->SetImmuneToAll(true); summon->SetReactState(REACT_PASSIVE); summon->GetMotionMaster()->Clear(false); @@ -950,6 +951,7 @@ public: if (summon->GetEntry() <= NPC_RIMBLAT_EARTHSHATTER && summon->GetEntry() != NPC_HIGHLORD_TIRION_FORDRING) { float o = lk->GetAngle(summon); + summon->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE); summon->GetMotionMaster()->MovePoint(3, lk->GetPositionX() + 2.0f * cos(o), lk->GetPositionY() + 2.0f * std::sin(o), lk->GetPositionZ()); summon->ToTempSummon()->SetTempSummonType(TEMPSUMMON_MANUAL_DESPAWN); }