Core/Scripts: Victory Rush and Rune Strike proc correction

(d0f760420a follow up)
Closes #19192
This commit is contained in:
ariel-
2017-02-23 11:27:36 -03:00
committed by roc13x
parent 0242bd6f20
commit e2ac33fdc2
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
UPDATE `spell_proc` SET `AttributesMask`=(`AttributesMask` & ~0x10) WHERE `SpellId` IN (32216, 56817);
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_gen_proc_charge_drop_only';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(32216, 'spell_gen_proc_charge_drop_only'),
(56817, 'spell_gen_proc_charge_drop_only');

View File

@@ -2375,6 +2375,32 @@ class spell_gen_proc_below_pct_damaged : public SpellScriptLoader
}
};
class spell_gen_proc_charge_drop_only : public SpellScriptLoader
{
public:
spell_gen_proc_charge_drop_only() : SpellScriptLoader("spell_gen_proc_charge_drop_only") { }
class spell_gen_proc_charge_drop_only_AuraScript : public AuraScript
{
PrepareAuraScript(spell_gen_proc_charge_drop_only_AuraScript);
void HandleChargeDrop(ProcEventInfo& eventInfo)
{
PreventDefaultAction();
}
void Register() override
{
OnProc += AuraProcFn(spell_gen_proc_charge_drop_only_AuraScript::HandleChargeDrop);
}
};
AuraScript* GetAuraScript() const override
{
return new spell_gen_proc_charge_drop_only_AuraScript();
}
};
enum ParachuteSpells
{
SPELL_PARACHUTE = 45472,
@@ -4179,6 +4205,7 @@ void AddSC_generic_spell_scripts()
new spell_gen_proc_below_pct_damaged("spell_item_corpse_tongue_coin_heroic");
new spell_gen_proc_below_pct_damaged("spell_item_petrified_twilight_scale");
new spell_gen_proc_below_pct_damaged("spell_item_petrified_twilight_scale_heroic");
new spell_gen_proc_charge_drop_only();
new spell_gen_parachute();
new spell_gen_pet_summoned();
new spell_gen_profession_research();