diff options
author | QAston <qaston@gmail.com> | 2011-06-23 15:51:14 +0200 |
---|---|---|
committer | QAston <qaston@gmail.com> | 2011-06-23 15:51:14 +0200 |
commit | dc8a926c8d79d60e172b3b8789a1aa32892ce50c (patch) | |
tree | 3969cc0dc1432bc4fc386f2b13e6d7ecc39eb589 /src | |
parent | 3352cabb494784c96febe4a2bfea62cdd540f06a (diff) |
Core/Auras: fix a typo in PowerDrain auras periodic tick handler.
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 1 | ||||
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 02da95581c0..c5122b04d69 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -12309,6 +12309,7 @@ int32 Unit::GetHealthGain(int32 dVal) return gain; } +// returns negative amount on power reduction int32 Unit::ModifyPower(Powers power, int32 dVal) { int32 gain = 0; diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index a0544b96e60..cb60408363d 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -6435,7 +6435,7 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con if (powerType == POWER_MANA) drainAmount -= target->GetSpellCritDamageReduction(drainAmount); - int32 drainedAmount = target->ModifyPower(powerType, -drainAmount); + int32 drainedAmount = -target->ModifyPower(powerType, -drainAmount); float gainMultiplier = SpellMgr::CalculateSpellEffectValueMultiplier(GetSpellProto(), GetEffIndex(), caster); |