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
|
@ -6,6 +6,7 @@ Version 2.0.0-31
|
|||
- Strong Legs increases jump height. Pro tip: hold shift to bypass this jump boost.
|
||||
- Soft Fall decreases all fall damage, up to 100% at level 5.
|
||||
- Added increase in speed for Routing nodes inside of a chunk with Demon Aura
|
||||
- Fixed OutOfBoundsException in the Sentient Sword when you didn't have enough Will.
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.0.0-30
|
||||
|
|
|
@ -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…
Reference in a new issue