diff --git a/src/main/java/cn/nukkit/potion/Effect.java b/src/main/java/cn/nukkit/potion/Effect.java index ba3c3391cac..5934d2f84d4 100644 --- a/src/main/java/cn/nukkit/potion/Effect.java +++ b/src/main/java/cn/nukkit/potion/Effect.java @@ -179,6 +179,7 @@ public boolean canTick() { int interval; switch (this.id) { case Effect.POISON: //POISON + case Effect.FATAL_POISON: if ((interval = (25 >> this.amplifier)) > 0) { return (this.duration % interval) == 0; } @@ -200,7 +201,8 @@ public boolean canTick() { public void applyEffect(Entity entity) { switch (this.id) { case Effect.POISON: //POISON - if (entity.getHealth() > 1) { + case Effect.FATAL_POISON: + if (entity.getHealth() > 1 || this.id == FATAL_POISON) { entity.attack(new EntityDamageEvent(entity, DamageCause.MAGIC, 1)); } break;