Skip to content

Commit

Permalink
Health should also be multiplied by multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Cysteine committed Nov 20, 2021
1 parent 187d866 commit 803ca85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public float onHurt(EntityLivingBase mob, DamageSource source, float damage)
{
if (source.getEntity() != null && source.getEntity() != mob && !InfernalMobsCore.instance().isInfiniteLoop(mob, source.getEntity()))
{
float reflectedDamage = Math.min(mob.getHealth(), Math.max(damage * reflectMultiplier, 1));
float reflectedDamage = Math.max(Math.min(damage, mob.getHealth()) * reflectMultiplier, 1);
if (maxReflectDamage > 0.0f)
{
reflectedDamage = Math.min(maxReflectDamage, reflectedDamage);
Expand Down

0 comments on commit 803ca85

Please sign in to comment.