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

@@ -1206,31 +1206,6 @@ class spell_item_trauma : public AuraScript
}
};
class spell_item_blade_ward_enchant : public AuraScript
{
PrepareAuraScript(spell_item_blade_ward_enchant);
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
{
PreventDefaultAction();
if (!eventInfo.GetActionTarget())
{
return;
}
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(64442 /*SPELL_BLADE_WARDING*/))
{
int32 basepoints = spellInfo->Effects[EFFECT_0].CalcValue() * this->GetStackAmount();
eventInfo.GetActionTarget()->CastCustomSpell(spellInfo->Id, SPELLVALUE_BASE_POINT0, basepoints, eventInfo.GetActor(), true);
}
}
void Register() override
{
OnEffectProc += AuraEffectProcFn(spell_item_blade_ward_enchant::HandleProc, EFFECT_1, SPELL_AURA_PROC_TRIGGER_SPELL);
}
};
class spell_item_blood_draining_enchant : public AuraScript
{
PrepareAuraScript(spell_item_blood_draining_enchant);
@@ -6236,7 +6211,6 @@ void AddSC_item_spell_scripts()
RegisterSpellScript(spell_item_fetch_ball);
RegisterSpellScript(spell_item_oracle_ablutions);
RegisterSpellScript(spell_item_trauma);
RegisterSpellScript(spell_item_blade_ward_enchant);
RegisterSpellScript(spell_item_blood_draining_enchant);
RegisterSpellScript(spell_item_dragon_kite_summon_lightning_bunny);
RegisterSpellScript(spell_item_enchanted_broom_periodic);