diff --git a/sql/mangos_spell_check.sql b/sql/mangos_spell_check.sql index 17c1a618d..af393daa6 100644 --- a/sql/mangos_spell_check.sql +++ b/sql/mangos_spell_check.sql @@ -575,6 +575,10 @@ INSERT INTO spell_check (spellid,SpellFamilyName,SpellFamilyMaskA,SpellFamilyMas (67333,-1, -1, -1, -1, -1, -1, 31, -1,-1,'Meteor Fists', 'Spell::EffectWeaponDmg'), (67485, 0, -1, -1, -1, -1, -1, 2, -1,-1,'Hand of Rekoning', 'Spell::EffectSchoolDMG'), (67485,-1, -1, -1, -1, -1, -1, -1, -1,-1,'Hand of Rekoning', 'Spell::cast'), +(67486,-1, -1, -1, -1, -1, -1, -1, -1,-1,'Healing Potion Injector', 'Spell::EffectHeal'), +(67487,-1, -1, -1, -1, -1, -1, -1, -1,-1,'Mana Potion Injector', 'Spell::EffectEnergize'), +(67489,-1, -1, -1, -1, -1, -1, -1, -1,-1,'Runic Healing Injector', 'Spell::EffectHeal'), +(67490,-1, -1, -1, -1, -1, -1, -1, -1,-1,'Runic Mana Injector', 'Spell::EffectEnergize'), (67700, 0, -1, -1, -1, -1, -1, -1, -1,-1,'Penetrating Cold', 'Spell::SetTargetMap'), (68082,-1, -1, -1, -1, -1, -1, 30, -1,-1,'Glyph of Seal of Command', 'Spell::EffectEnergize'), (68509, 0, -1, -1, -1, -1, -1, -1, -1,-1,'Penetrating Cold', 'Spell::SetTargetMap'), diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 3ad5b9369..f3dc552e8 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3246,6 +3246,13 @@ void Spell::EffectHeal(SpellEffectIndex /*eff_idx*/) addhealth += tickheal * tickcount; } + // Runic Healing Injector & Healing Potion Injector effect increase for engineers + else if ((m_spellInfo->Id == 67486 || m_spellInfo->Id == 67489) && unitTarget->GetTypeId() == TYPEID_PLAYER) + { + Player* player = (Player*)unitTarget; + if (player->HasSkill(SKILL_ENGINERING)) + addhealth += int32(addhealth * 0.25); + } // Chain Healing if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000100)) @@ -3543,6 +3550,17 @@ void Spell::EffectEnergize(SpellEffectIndex eff_idx) case 68082: // Glyph of Seal of Command damage = damage * unitTarget->GetCreateMana() / 100; break; + case 67487: // Mana Potion Injector + case 67490: // Runic Mana Injector + { + if (unitTarget->GetTypeId() == TYPEID_PLAYER) + { + Player* player = (Player*)unitTarget; + if (player->HasSkill(SKILL_ENGINERING)) + damage += int32(damage * 0.25); + } + break; + } default: break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8515eed50..2f7db0c7a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10436" + #define REVISION_NR "10437" #endif // __REVISION_NR_H__