dealNoInvulnerabilityTickDamage actually hurts things now

This commit is contained in:
nossr50
2019-01-23 16:08:41 -08:00
parent 71a3eb6a93
commit c46b7ed3bc
3 changed files with 8 additions and 7 deletions

View File

@ -381,11 +381,10 @@ public final class CombatUtils {
return;
}
//target.damage(callFakeDamageEvent(attacker, target, cause, damage));
double incDmg = callFakeDamageEvent(attacker, target, DamageCause.CUSTOM, damage);
if(incDmg > 0)
target.setHealth(incDmg);
double newHealth = Math.max(0, target.getHealth() - incDmg);
target.setHealth(newHealth);
}
/**