Fix build

This commit is contained in:
Shocker
2011-06-29 15:43:48 +03:00
parent c9600143d9
commit 2cbff7d9ed

View File

@@ -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())