mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Entities/Unit: fix an unrelated check from doing nothing because somebody didn't understand how type-casting works
This commit is contained in:
@@ -1580,7 +1580,7 @@ void Unit::HandleEmoteCommand(uint32 anim_id)
|
||||
damageReduction /= (1.0f + damageReduction);
|
||||
|
||||
RoundToInterval(damageReduction, 0.f, 0.75f);
|
||||
return std::max<uint32>(damage * (1.0f - damageReduction), 0);
|
||||
return uint32(std::max(damage * (1.0f - damageReduction), 0.0f));
|
||||
}
|
||||
|
||||
/*static*/ uint32 Unit::CalcSpellResistedDamage(Unit const* attacker, Unit* victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const* spellInfo)
|
||||
|
||||
Reference in New Issue
Block a user