aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuraEffects.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index f59dc5d40c9..746b621322a 100755
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -6453,11 +6453,10 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con
SpellPeriodicAuraLogInfo pInfo(this, drainedAmount, 0, 0, 0, gainMultiplier, false);
target->SendPeriodicAuraLog(&pInfo);
- if (int32 gainAmount = int32(drainedAmount * gainMultiplier))
- {
- int32 gainedAmount = caster->ModifyPower(powerType, gainAmount);
+ int32 gainAmount = int32(drainedAmount * gainMultiplier);
+ int32 gainedAmount = caster->ModifyPower(powerType, gainAmount);
+ if (gainedAmount)
target->AddThreat(caster, float(gainedAmount) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto());
- }
// spell-specific code
switch(GetId())