mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 14:46:54 +01:00
Corrected calculation for SPELL_AURA_PERIODIC_DAMAGE_PERCENT (#19060)
This commit is contained in:
@@ -5568,8 +5568,8 @@ void AuraEffect::HandlePeriodicDamageAurasTick(Unit* target, Unit* caster) const
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
damage = uint32(target->CountPctFromMaxHealth(damage));
|
||||
else // ceil obtained value, it may happen that 10 ticks for 10% damage may not kill owner
|
||||
damage = uint32(ceil(CalculatePct<float, float>(target->GetMaxHealth(), damage)));
|
||||
|
||||
if (!m_spellInfo->HasAttribute(SPELL_ATTR4_FIXED_DAMAGE))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user