v1.4.0: fixed detached berserk and momentum not clearing action button

This commit is contained in:
Evan Debenham
2022-10-03 13:45:18 -04:00
parent 9c8953b48b
commit ddfe1db32b
2 changed files with 12 additions and 0 deletions

View File

@@ -155,6 +155,12 @@ public class Berserk extends Buff implements ActionIndicator.Action {
return true;
}
@Override
public void detach() {
super.detach();
ActionIndicator.clearAction(this);
}
public float enchantFactor(float chance){
return chance + ((Math.min(1f, power) * 0.15f) * ((Hero) target).pointsInTalent(Talent.ENRAGED_CATALYST));
}

View File

@@ -50,6 +50,12 @@ public class Momentum extends Buff implements ActionIndicator.Action {
private boolean movedLastTurn = true;
@Override
public void detach() {
super.detach();
ActionIndicator.clearAction(this);
}
@Override
public boolean act() {
if (freerunCooldown > 0){