diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 717ff5583..ba9f14e3a 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -784,14 +784,6 @@ namespace Game.Spells addhealth += damageAmount; } - // Runic Healing Injector (heal increased by 25% for engineers - 3.2.0 patch change) - else if (m_spellInfo.Id == 67489) - { - Player player = unitCaster.ToPlayer(); - if (player != null) - if (player.HasSkill(SkillType.Engineering)) - MathFunctions.AddPct(ref addhealth, 25); - } // Death Pact - return pct of max health to caster else if (m_spellInfo.SpellFamilyName == SpellFamilyNames.Deathknight && m_spellInfo.SpellFamilyFlags[0].HasAnyFlag(0x00080000u)) addhealth = (int)unitCaster.SpellHealingBonusDone(unitTarget, m_spellInfo, (uint)unitCaster.CountPctFromMaxHealth(damage), DamageEffectType.Heal, effectInfo); diff --git a/Source/Scripts/Spells/Items.cs b/Source/Scripts/Spells/Items.cs index 29226ebfd..d07623c8c 100644 --- a/Source/Scripts/Spells/Items.cs +++ b/Source/Scripts/Spells/Items.cs @@ -2976,6 +2976,28 @@ namespace Scripts.Spells.Items } } + [Script] // 67489 - Runic Healing Injector + class spell_item_runic_healing_injector : SpellScript + { + public override bool Load() + { + return GetCaster().IsPlayer(); + } + + void HandleHeal(uint effIndex) + { + Player caster = GetCaster().ToPlayer(); + if (caster != null) + if (caster.HasSkill(SkillType.Engineering)) + SetHitHeal((int)(GetHitHeal() * 1.25f)); + } + + public override void Register() + { + OnEffectHitTarget.Add(new EffectHandler(HandleHeal, 0, SpellEffectName.Heal)); + } + } + [Script] class spell_item_pygmy_oil : SpellScript { diff --git a/sql/updates/world/master/2021_12_18_23_world_2019_08_08_00_world.sql b/sql/updates/world/master/2021_12_18_23_world_2019_08_08_00_world.sql new file mode 100644 index 000000000..aaaca8654 --- /dev/null +++ b/sql/updates/world/master/2021_12_18_23_world_2019_08_08_00_world.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_item_runic_healing_injector'; +INSERT INTO `spell_script_names` VALUES +(67489,'spell_item_runic_healing_injector');