mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Spells): fix Kel'Thuzad frost blast being affected by damage… (#24153)
This commit is contained in:
@@ -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');
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user