From 44de012148eda14fd3286b04a933ad9f9e286105 Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 1 Mar 2009 16:29:40 +0100 Subject: *Fix drain mana, judgement of widsom and viper sting damage amount. Patch by Maxxie. *Add one more rank of Devour Magic. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/SpellEffects.cpp') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 948b3cb7754..fa33d76571f 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2440,16 +2440,15 @@ void Spell::EffectPowerBurn(uint32 i) int32 curPower = int32(unitTarget->GetPower(powertype)); - uint32 power = damage; - // Priest's Mana Burn, burn max amount of 26% of caster's mana + //Mana burn take mana % amount from target, but not bigger than amount*2 of caster mana if ( m_spellInfo->SpellFamilyName==SPELLFAMILY_PRIEST && m_spellInfo->SpellFamilyFlags[0] & 0x10) { // Burn percentage of target's mana power = damage * curPower / 100; if (caster) { - casterPower = caster->GetPower(powertype)*0.26f + uint32 casterPower = damage * caster->GetPower(powertype) / 50; if (casterPowerId); break; -- cgit v1.2.3