Fixed the Living Armour so that it wouldn't get damaged by self-sacrificing when you had upgrades that mitigate unblockable sources.
This commit is contained in:
parent
e363ba8ffb
commit
b684aebdaa
|
@ -3,6 +3,7 @@ Version 2.0.0-38
|
|||
------------------------------------------------------
|
||||
- Fixed it so that the Sentient weaponry is actually repairable using any demon will crystals in an anvil
|
||||
- Changed the stat tracker for Tough Palms so that it counts number of hearts sacrificed, not number of sacrifices
|
||||
- Fixed the Living Armour so that it wouldn't get damaged by self-sacrificing when you had upgrades that mitigate unblockable sources.
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.0.0-37
|
||||
|
|
|
@ -217,6 +217,11 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
|||
{
|
||||
if (this == ModItems.livingArmourChest)
|
||||
{
|
||||
if (source.isUnblockable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (damage > this.getMaxDamage(stack) - this.getDamage(stack))
|
||||
{
|
||||
//TODO: Syphon a load of LP.
|
||||
|
|
Loading…
Reference in a new issue