mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-01-03 13:57:36 +01:00
make damage stats accurate
This commit is contained in:
parent
ddf7ccf22b
commit
9e680134d0
@ -40,7 +40,9 @@ public class BossDamageListener implements Listener {
|
||||
|
||||
LivingEntity livingEntity = (LivingEntity) entityBeingDamaged;
|
||||
ActiveBossHolder activeBossHolder = this.bossEntityManager.getActiveBossHolder(livingEntity);
|
||||
double damage = event.getDamage();
|
||||
double damage = event.getFinalDamage();
|
||||
if (entityBeingDamaged instanceof LivingEntity && damage > ((LivingEntity) entityBeingDamaged).getHealth())
|
||||
damage = ((LivingEntity) entityBeingDamaged).getHealth();
|
||||
Player player = null;
|
||||
|
||||
if (activeBossHolder == null && livingEntity.getCustomName() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user