fix(Scripts/BlackTemple): L5 Arcane Charge should be modified by dama… (#19730)
* fix(Scripts/BlackTemple): L5 Arcane Charge should be modified by damage taken mods * Create rev_1724540286668312700.sql * Update spell_generic.cpp * update to new format
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
--
|
||||||
|
DELETE FROM `spell_script_names` WHERE `spell_id` = 41360;
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||||
|
(41360, 'spell_black_temple_l5_arcane_charge');
|
||||||
@@ -486,6 +486,22 @@ class spell_black_temple_summon_shadowfiends : public SpellScript
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class spell_black_temple_l5_arcane_charge : public SpellScript
|
||||||
|
{
|
||||||
|
PrepareSpellScript(spell_black_temple_l5_arcane_charge)
|
||||||
|
|
||||||
|
void RecalculateDamage()
|
||||||
|
{
|
||||||
|
uint32 damage = GetHitUnit()->SpellDamageBonusTaken(GetCaster(), GetSpellInfo(), GetHitUnit()->CountPctFromMaxHealth(100), SPELL_DIRECT_DAMAGE);
|
||||||
|
SetHitDamage(int32(damage));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
OnHit += SpellHitFn(spell_black_temple_l5_arcane_charge::RecalculateDamage);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void AddSC_instance_black_temple()
|
void AddSC_instance_black_temple()
|
||||||
{
|
{
|
||||||
new instance_black_temple();
|
new instance_black_temple();
|
||||||
@@ -502,4 +518,5 @@ void AddSC_instance_black_temple()
|
|||||||
RegisterSpellScript(spell_black_temple_curse_of_vitality_aura);
|
RegisterSpellScript(spell_black_temple_curse_of_vitality_aura);
|
||||||
RegisterSpellScript(spell_black_temple_dementia_aura);
|
RegisterSpellScript(spell_black_temple_dementia_aura);
|
||||||
RegisterSpellScript(spell_black_temple_summon_shadowfiends);
|
RegisterSpellScript(spell_black_temple_summon_shadowfiends);
|
||||||
|
RegisterSpellScript(spell_black_temple_l5_arcane_charge);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3686,7 +3686,6 @@ class spell_gen_ds_flush_knockback : public SpellScript
|
|||||||
60864 - Jaws of Death (spell_gen_default_count_pct_from_max_hp)
|
60864 - Jaws of Death (spell_gen_default_count_pct_from_max_hp)
|
||||||
38441 - Cataclysmic Bolt (spell_gen_50pct_count_pct_from_max_hp)
|
38441 - Cataclysmic Bolt (spell_gen_50pct_count_pct_from_max_hp)
|
||||||
66316, 67100, 67101, 67102 - Spinning Pain Spike (spell_gen_50pct_count_pct_from_max_hp)
|
66316, 67100, 67101, 67102 - Spinning Pain Spike (spell_gen_50pct_count_pct_from_max_hp)
|
||||||
41360 - L5 Arcane Charge (spell_gen_100pct_count_pct_from_max_hp)
|
|
||||||
33711/38794 - Murmur's Touch
|
33711/38794 - Murmur's Touch
|
||||||
*/
|
*/
|
||||||
class spell_gen_count_pct_from_max_hp : public SpellScript
|
class spell_gen_count_pct_from_max_hp : public SpellScript
|
||||||
@@ -5424,7 +5423,6 @@ void AddSC_generic_spell_scripts()
|
|||||||
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_default_count_pct_from_max_hp");
|
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_default_count_pct_from_max_hp");
|
||||||
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_10pct_count_pct_from_max_hp", 10);
|
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_10pct_count_pct_from_max_hp", 10);
|
||||||
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_50pct_count_pct_from_max_hp", 50);
|
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_50pct_count_pct_from_max_hp", 50);
|
||||||
RegisterSpellScriptWithArgs(spell_gen_count_pct_from_max_hp, "spell_gen_100pct_count_pct_from_max_hp", 100);
|
|
||||||
RegisterSpellScript(spell_gen_despawn_self);
|
RegisterSpellScript(spell_gen_despawn_self);
|
||||||
RegisterSpellScript(spell_gen_bandage);
|
RegisterSpellScript(spell_gen_bandage);
|
||||||
RegisterSpellScript(spell_gen_paralytic_poison);
|
RegisterSpellScript(spell_gen_paralytic_poison);
|
||||||
|
|||||||
Reference in New Issue
Block a user