fix(Core/Scripts): Remove duplicate spell scripts causing double-firing (#24905)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-26 16:36:23 -06:00
committed by GitHub
parent 9df01c67fa
commit 22dd44f4d1
8 changed files with 8 additions and 225 deletions

View File

@@ -1404,33 +1404,6 @@ class spell_pal_spiritual_attunement : public AuraScript
}
};
// 54937 - Glyph of Holy Light (proc trigger)
class spell_pal_glyph_of_holy_light_proc : public AuraScript
{
PrepareAuraScript(spell_pal_glyph_of_holy_light_proc);
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_PALADIN_GLYPH_OF_HOLY_LIGHT_HEAL });
}
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
{
PreventDefaultAction();
HealInfo* healInfo = eventInfo.GetHealInfo();
if (!healInfo || !healInfo->GetHeal())
return;
int32 bp = CalculatePct(int32(healInfo->GetHeal()), aurEff->GetAmount());
GetTarget()->CastCustomSpell(SPELL_PALADIN_GLYPH_OF_HOLY_LIGHT_HEAL, SPELLVALUE_BASE_POINT0, bp, eventInfo.GetActionTarget(), true, nullptr, aurEff);
}
void Register() override
{
OnEffectProc += AuraEffectProcFn(spell_pal_glyph_of_holy_light_proc::HandleProc, EFFECT_0, SPELL_AURA_DUMMY);
}
};
// 1022 - Hand of Protection
class spell_pal_hand_of_protection : public SpellScript
{
@@ -2209,7 +2182,6 @@ void AddSC_paladin_spell_scripts()
RegisterSpellScript(spell_pal_judgement_of_light_heal);
RegisterSpellScript(spell_pal_judgement_of_wisdom_mana);
RegisterSpellScript(spell_pal_spiritual_attunement);
RegisterSpellScript(spell_pal_glyph_of_holy_light_proc);
RegisterSpellScript(spell_pal_t3_6p_bonus);
RegisterSpellScript(spell_pal_t8_2p_bonus);
RegisterSpellScript(spell_pal_glyph_of_divinity);