fix(Core/Spells): fix Kel'Thuzad frost blast being affected by damage… (#24153)

This commit is contained in:
Andrew
2025-12-18 12:52:39 -03:00
committed by GitHub
parent 688a19472b
commit d1273bdd14
3 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
--
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_gen_26pct_count_pct_from_max_hp' AND `spell_id` = 29879;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(29879, 'spell_gen_26pct_count_pct_from_max_hp');

View File

@@ -6351,7 +6351,7 @@ void AuraEffect::HandlePeriodicTriggerSpellAuraTick(Unit* target, Unit* caster)
case 27808: case 27808:
if (caster) if (caster)
{ {
caster->CastCustomSpell(29879, SPELLVALUE_BASE_POINT0, int32(target->CountPctFromMaxHealth(21)), target, true, nullptr, this); caster->CastSpell(target, 29879, true, nullptr, this);
if (GetTickNumber() == 1) if (GetTickNumber() == 1)
caster->CastSpell(target, 27808, true); caster->CastSpell(target, 27808, true);
} }

View File

@@ -5801,6 +5801,7 @@ 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_26pct_count_pct_from_max_hp", 26);
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);