mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 04:37:06 +00:00
[10437] Fix engineering bonus for injectors
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
3ff64ef35e
commit
87b2ab6ba1
3 changed files with 23 additions and 1 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10436"
|
||||
#define REVISION_NR "10437"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue