Skip to content

Commit

Permalink
TK: Make flamestrike npc despawn and not chase around
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 5, 2023
1 parent e7f0796 commit b40eca8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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<Creature*>(aura->GetTarget())->ForcedDespawn(10000);
}
};

Expand Down

0 comments on commit b40eca8

Please sign in to comment.