diff --git a/src/pocketmine/entity/Effect.php b/src/pocketmine/entity/Effect.php index ccbe3d109..f901245fb 100644 --- a/src/pocketmine/entity/Effect.php +++ b/src/pocketmine/entity/Effect.php @@ -291,7 +291,7 @@ class Effect{ case Effect::HEALTH_BOOST: $attr = $entity->getAttributeMap()->getAttribute(Attribute::HEALTH); if($ev->willModify() and $oldEffect !== null){ - $max = $attr->getMaxValue() - (4 * ($this->amplifier + 1)); + $max = $attr->getMaxValue() - (4 * ($oldEffect->getAmplifier() + 1)); }else{ $max = $attr->getMaxValue(); }