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:
parent
02adac819d
commit
6630e50efd
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue