Fixed the Sentient Sword so that it would use the default will type if it didn't have enough will.

This commit is contained in:
WayofTime 2016-04-03 21:46:23 -04:00
parent 02adac819d
commit 6630e50efd
2 changed files with 2 additions and 1 deletions

View file

@ -80,7 +80,7 @@ public class ItemSentientSword extends ItemSword implements IDemonWillWeapon, IM
{
EnumDemonWillType type = PlayerDemonWillHandler.getLargestWillType(player);
double soulsRemaining = PlayerDemonWillHandler.getTotalDemonWill(type, player);
this.setCurrentType(stack, type);
this.setCurrentType(stack, soulsRemaining > 0 ? type : EnumDemonWillType.DEFAULT);
int level = getLevel(stack, soulsRemaining);
double drain = level >= 0 ? soulDrainPerSwing[level] : 0;