diff --git a/src/entity/effect/HealthBoostEffect.php b/src/entity/effect/HealthBoostEffect.php index 90c5ee680..022015d42 100644 --- a/src/entity/effect/HealthBoostEffect.php +++ b/src/entity/effect/HealthBoostEffect.php @@ -33,5 +33,8 @@ class HealthBoostEffect extends Effect{ public function remove(Living $entity, EffectInstance $instance) : void{ $entity->setMaxHealth($entity->getMaxHealth() - 4 * $instance->getEffectLevel()); + if($entity->getHealth() > $entity->getMaxHealth()){ + $entity->setHealth($entity->getMaxHealth()); + } } }