fix(Scripts/SunwellPlateau): Remove Kil'jaeden's debuffs from Shield of the Blue effects. (#22687)

This commit is contained in:
Benjamin Jackson
2025-08-18 15:04:06 -04:00
committed by GitHub
parent 36f04acdd5
commit 7a9f430935
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `spell_id` = 45848;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(45848, 'spell_kiljaeden_shield_of_the_blue');

View File

@@ -1181,6 +1181,26 @@ class spell_kiljaeden_dragon_breath : public SpellScript
}
};
// 45848 - Shield of the Blue
class spell_kiljaeden_shield_of_the_blue : public AuraScript
{
PrepareAuraScript(spell_kiljaeden_shield_of_the_blue);
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* target = GetTarget())
{
target->RemoveAurasDueToSpell(SPELL_FIRE_BLOOM);
target->RemoveMovementImpairingAuras(false);
}
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_kiljaeden_shield_of_the_blue::HandleEffectApply, EFFECT_0, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, AURA_EFFECT_HANDLE_REAL);
}
};
void AddSC_boss_kiljaeden()
{
RegisterSunwellPlateauCreatureAI(npc_kiljaeden_controller);
@@ -1196,4 +1216,5 @@ void AddSC_boss_kiljaeden()
RegisterSpellScript(spell_kiljaeden_armageddon_periodic_aura);
RegisterSpellScript(spell_kiljaeden_armageddon_missile);
RegisterSpellScript(spell_kiljaeden_dragon_breath);
RegisterSpellScript(spell_kiljaeden_shield_of_the_blue);
}