Skip to content

Commit 4f7a984

Browse files
authored
Fix EffKill failing to kill entities (#8505)
1 parent aab376c commit 4f7a984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ch/njol/skript/effects/EffKill.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected void execute(Event event) {
5252
if (entity instanceof Damageable damageable) {
5353
if (SUPPORTS_DAMAGE_SOURCE) {
5454
EntityDamageEvent.DamageCause cause = EntityDamageEvent.DamageCause.KILL;
55-
HealthUtils.damage(damageable, 100 + damageable.getHealth(), DamageUtils.getDamageSourceFromCause(cause));
55+
HealthUtils.damage(damageable, Double.POSITIVE_INFINITY, DamageUtils.getDamageSourceFromCause(cause));
5656
} else {
5757
HealthUtils.setHealth(damageable, 0);
5858
HealthUtils.damage(damageable, 1);

0 commit comments

Comments
 (0)