Skip to content

Instantly share code, notes, and snippets.

@tobmaps
Created October 28, 2011 02:05
Show Gist options
  • Save tobmaps/1321457 to your computer and use it in GitHub Desktop.
Save tobmaps/1321457 to your computer and use it in GitHub Desktop.
Runic Healing/Mana Injector for engineers after 3.2.0
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 83cecf7..2d263b2 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2237,6 +2237,13 @@ void Spell::EffectHeal(SpellEffIndex /*effIndex*/)
addhealth += damageAmount;
}
+ // Runic Healing Injector (heal increased by 25% for engineers - 3.2.0 patch change)
+ else if (m_spellInfo->Id == 67489)
+ {
+ if (m_caster->GetTypeId() == TYPEID_PLAYER)
+ if (m_caster->ToPlayer()->GetSkillValue(SKILL_ENGINERING) >= 410)
+ AddPctN(addhealth, 25);
+ }
// Swiftmend - consumes Regrowth or Rejuvenation
else if (m_spellInfo->TargetAuraState == AURA_STATE_SWIFTMEND && unitTarget->HasAuraState(AURA_STATE_SWIFTMEND, m_spellInfo, m_caster))
{
@@ -2629,6 +2636,13 @@ void Spell::EffectEnergize(SpellEffIndex effIndex)
case 48542: // Revitalize
damage = int32(CalculatePctN(unitTarget->GetMaxPower(power), damage));
break;
+ case 67490: // Runic Mana Injector (mana gain increased by 25% for engineers - 3.2.0 patch change)
+ {
+ if (m_caster->GetTypeId() == TYPEID_PLAYER)
+ if (m_caster->ToPlayer()->GetSkillValue(SKILL_ENGINERING) >= 410)
+ AddPctN(damage, 25);
+ break;
+ }
case 71132: // Glyph of Shadow Word: Pain
damage = int32(CalculatePctN(unitTarget->GetCreateMana(), 1)); // set 1 as value, missing in dbc
break;
@tobmaps
Copy link
Author

tobmaps commented Oct 28, 2011

i didn't even test it for compilation, but think it should work

@jackie331
Copy link

jackie331 commented May 30, 2022

I am also a novice programmer, and only learning python and java. By the way, in my free time, I create various commands for bots and I do it all on record using one of these programs - https://www.screencapture.com/blog/best-obs-alternatives.html If you are interested in programming, then let's chat and share experiences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment