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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user