Skip to content

Commit

Permalink
Fix bug with mana and stat modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Sep 20, 2023
1 parent 1f69746 commit 0ef5b8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public boolean removeStatModifier(String name, boolean reload) {
new Luck(plugin).reload(player);
} else if (modifier.getStat() == Stats.WISDOM) {
// Remove overflow mana if disallowed by config
if (!OptionL.getBoolean(Option.WISDOM_ALLOW_OVER_MAX_MANA)) {
if (!OptionL.getBoolean(Option.WISDOM_ALLOW_OVER_MAX_MANA) && mana > getMaxMana()) {
setMana(getMaxMana());
}
}
Expand Down

0 comments on commit 0ef5b8b

Please sign in to comment.