Core/Misc: Logic fix in previous build fix

This commit is contained in:
Shocker
2011-06-29 16:49:55 +03:00
committed by Machiavelli
parent 697fa4b4d2
commit 49ed8efa83
@@ -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())