From b40eca88f1f051782ef0e59290abc6dd86f7f8d0 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 5 Nov 2023 10:54:48 +0100 Subject: [PATCH] TK: Make flamestrike npc despawn and not chase around --- .../scripts/outland/tempest_keep/the_eye/boss_kaelthas.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/AI/ScriptDevAI/scripts/outland/tempest_keep/the_eye/boss_kaelthas.cpp b/src/game/AI/ScriptDevAI/scripts/outland/tempest_keep/the_eye/boss_kaelthas.cpp index 6e071972c7..c0ed66476d 100644 --- a/src/game/AI/ScriptDevAI/scripts/outland/tempest_keep/the_eye/boss_kaelthas.cpp +++ b/src/game/AI/ScriptDevAI/scripts/outland/tempest_keep/the_eye/boss_kaelthas.cpp @@ -446,6 +446,8 @@ struct boss_kaelthasAI : public CombatAI { case NPC_FLAME_STRIKE_TRIGGER: { + summoned->AI()->SetCombatMovement(false); + summoned->AI()->SetMeleeEnabled(false); DoCastSpellIfCan(summoned, SPELL_FLAME_STRIKE_DUMMY, CAST_FORCE_TARGET_SELF | CAST_TRIGGERED | CAST_AURA_NOT_PRESENT); break; } @@ -1395,6 +1397,8 @@ struct FlameStrikeKael : public AuraScript void OnApply(Aura* aura, bool apply) const override { aura->GetTarget()->CastSpell(nullptr, 36731, TRIGGERED_OLD_TRIGGERED, nullptr, aura); + if (aura->GetTarget()->IsCreature()) + static_cast(aura->GetTarget())->ForcedDespawn(10000); } };