aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-06 13:55:32 +0200
committerQAston <none@none>2009-04-06 13:55:32 +0200
commitc7758d54bfa73e7095f222d8ac8d5c28a4573dd0 (patch)
tree9e9c1582648ee2d95df61e4d5588e8d41685d361
parent9f9b4ce876f977f9b653e5dd8e090f7e738ad5f5 (diff)
*Fix mana burn.
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 0e126f8f34f..c7d049305ee 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2435,18 +2435,6 @@ void Spell::EffectPowerBurn(uint32 i)
int32 curPower = int32(unitTarget->GetPower(powertype));
uint32 power = damage;
- //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)
- {
- uint32 casterPower = damage * caster->GetPower(powertype) / 50;
- if (casterPower<curPower)
- curPower = casterPower;
- }
- }
// resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)
if ( powertype == POWER_MANA && unitTarget->GetTypeId() == TYPEID_PLAYER )
power -= ((Player*)unitTarget)->GetSpellCritDamageReduction(power);