diff options
author | Shocker <shocker@freakz.ro> | 2011-06-29 16:49:55 +0300 |
---|---|---|
committer | Shocker <shocker@freakz.ro> | 2011-06-29 16:49:55 +0300 |
commit | 1bc9bb64996e4aa56f6b0638046d79c3821cfa3b (patch) | |
tree | 9c7ed23864ad04c51e295c40932b9ae41eb34a3a | |
parent | bdba5cd900435888afc3b276ad4e0f6d1419e5b1 (diff) |
Core/Misc: Logic fix in previous build fix
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 746b621322a..b6956788be9 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -6454,9 +6454,12 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con target->SendPeriodicAuraLog(&pInfo); int32 gainAmount = int32(drainedAmount * gainMultiplier); - int32 gainedAmount = caster->ModifyPower(powerType, gainAmount); - if (gainedAmount) + int32 gainedAmount = 0; + if (gainAmount) + { + gainedAmount = caster->ModifyPower(powerType, gainAmount); target->AddThreat(caster, float(gainedAmount) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto()); + } // spell-specific code switch(GetId()) |