Skip to content

Commit

Permalink
Fix: "Glyph of Shadow Word: Pain"
Browse files Browse the repository at this point in the history
fixes mana restoration effect of Item ID 42406
  • Loading branch information
byAutumn committed Mar 7, 2011
1 parent d6ddc64 commit b805fa8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/game/Spells/SpellEffects.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit b805fa8

Please sign in to comment.