Fixed a mistake in old effect handling

This commit is contained in:
Dylan K. Taylor
2017-03-12 20:15:21 +00:00
committed by GitHub
parent 955dc38be4
commit 78278a0b93

View File

@ -291,7 +291,7 @@ class Effect{
case Effect::HEALTH_BOOST: case Effect::HEALTH_BOOST:
$attr = $entity->getAttributeMap()->getAttribute(Attribute::HEALTH); $attr = $entity->getAttributeMap()->getAttribute(Attribute::HEALTH);
if($ev->willModify() and $oldEffect !== null){ if($ev->willModify() and $oldEffect !== null){
$max = $attr->getMaxValue() - (4 * ($this->amplifier + 1)); $max = $attr->getMaxValue() - (4 * ($oldEffect->getAmplifier() + 1));
}else{ }else{
$max = $attr->getMaxValue(); $max = $attr->getMaxValue();
} }