mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Scripts: Victory Rush and Rune Strike proc correction
(d0f760420a follow up)
Closes #19192
This commit is contained in:
6
sql/updates/world/3.3.5/2017_02_23_01_world_335.sql
Normal file
6
sql/updates/world/3.3.5/2017_02_23_01_world_335.sql
Normal 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');
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user