Skip to content

Commit

Permalink
Merge pull request #8 from D-Cysteine/1.7.10
Browse files Browse the repository at this point in the history
Health should also be multiplied by multiplier
  • Loading branch information
Dream-Master committed Nov 20, 2021
2 parents 48b95ba + 803ca85 commit 96c150e
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 96c150e

Please sign in to comment.