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:
WayofTime 2016-05-12 15:44:12 -04:00
parent e363ba8ffb
commit b684aebdaa
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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.