Fix build

This commit is contained in:
Shocker
2011-06-29 15:43:48 +03:00
parent c9600143d9
commit 2cbff7d9ed
@@ -6453,11 +6453,10 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con
SpellPeriodicAuraLogInfo pInfo(this, drainedAmount, 0, 0, 0, gainMultiplier, false); SpellPeriodicAuraLogInfo pInfo(this, drainedAmount, 0, 0, 0, gainMultiplier, false);
target->SendPeriodicAuraLog(&pInfo); target->SendPeriodicAuraLog(&pInfo);
if (int32 gainAmount = int32(drainedAmount * gainMultiplier)) int32 gainAmount = int32(drainedAmount * gainMultiplier);
{
int32 gainedAmount = caster->ModifyPower(powerType, gainAmount); int32 gainedAmount = caster->ModifyPower(powerType, gainAmount);
if (gainedAmount)
target->AddThreat(caster, float(gainedAmount) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto()); target->AddThreat(caster, float(gainedAmount) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto());
}
// spell-specific code // spell-specific code
switch(GetId()) switch(GetId())