Fixed #778
This commit is contained in:
parent
f0f6af3eac
commit
9aa2f86c88
|
@ -3,6 +3,7 @@ Version 2.0.1-43
|
|||
------------------------------------------------------
|
||||
- Added an initial method to divine where a blood rune is missing for the next tier of altar.
|
||||
- Fixed an NPE with the Gathering of the Forsaken Souls
|
||||
- Fixed Absorption Hearts remaining after the absorption buff ends for the Steadfast Sentient Sword
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.0.1-42
|
||||
|
|
|
@ -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…
Reference in a new issue