[10437] Fix engineering bonus for injectors

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
lavinelu 2010-09-03 08:32:47 +03:00 committed by Laise
parent 3ff64ef35e
commit 87b2ab6ba1
3 changed files with 23 additions and 1 deletions

View file

@ -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;
}