mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user