Fixed #778
This commit is contained in:
parent
f0f6af3eac
commit
9aa2f86c88
2 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,7 @@ public class ItemSentientSword extends ItemSword implements IDemonWillWeapon, IM
|
|||
if (!target.isEntityAlive())
|
||||
{
|
||||
float absorption = attacker.getAbsorptionAmount();
|
||||
attacker.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, absorptionTime[willBracket]));
|
||||
attacker.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, absorptionTime[willBracket], 127));
|
||||
attacker.setAbsorptionAmount((float) Math.min(absorption + target.getMaxHealth() * 0.05f, maxAbsorptionHearts));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue