Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: "Glyph of Shadow Word: Pain"

fixes mana restoration effect of Item ID 42406
  • Loading branch information...
commit b805fa822104fad5ce0fa1e17ee21b8e185b329d 1 parent d6ddc64
GWRde authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/server/game/Spells/SpellEffects.cpp
6 src/server/game/Spells/SpellEffects.cpp
View
@@ -2600,6 +2600,12 @@ void Spell::EffectEnergize(SpellEffIndex effIndex)
case 48542: // Revitalize
damage = int32(CalculatePctN(unitTarget->GetMaxPower(power), damage));
break;
+ case 71132: // Glyph 'Shadow Word: Pain' (3.3.5a version, redone in 4.x)
+ damage = 1; // effect #1 value is 0 so 0%, manually set to 1%
+ damage = int32(CalculatePctN(unitTarget->GetCreateMana(), damage));
+ //calculation below would use more generic approach
+ //damage = int32(CalculatePctN(unitTarget->GetCreatePowers(power), damage));
+ break;
default:
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.