mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-18 22:09:40 -04:00
Core/Misc: Logic fix in previous build fix
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user