v1.4.0: fixed detached berserk and momentum not clearing action button
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user