v1.4.0: fixed berserk buff not always clearing at 0 shielding

This commit is contained in:
Evan Debenham
2022-09-23 12:24:33 -04:00
parent d9529595af
commit 470fc49dc7

View File

@@ -93,7 +93,7 @@ public class Berserk extends Buff implements ActionIndicator.Action {
@Override
public boolean act() {
if (berserking()){
if (state == State.BERSERK){
ShieldBuff buff = target.buff(WarriorShield.class);
if (target.shielding() > 0) {
//lose 2.5% of shielding per turn, but no less than 1