v1.2.0: fixed the freerunner gaining momentum while freerunning

This commit is contained in:
Evan Debenham
2022-02-23 14:50:06 -05:00
parent f200022dfa
commit 777a65597c

View File

@@ -55,7 +55,7 @@ public class Momentum extends Buff implements ActionIndicator.Action {
freerunCooldown--;
}
if (freerunCooldown == 0 && target.invisible > 0 && Dungeon.hero.pointsInTalent(Talent.SPEEDY_STEALTH) >= 1){
if (freerunCooldown == 0 && !freerunning() && target.invisible > 0 && Dungeon.hero.pointsInTalent(Talent.SPEEDY_STEALTH) >= 1){
momentumStacks = Math.min(momentumStacks + 2, 10);
movedLastTurn = true;
}
@@ -79,7 +79,7 @@ public class Momentum extends Buff implements ActionIndicator.Action {
public void gainStack(){
movedLastTurn = true;
if (freerunCooldown <= 0){
if (freerunCooldown <= 0 && !freerunning()){
postpone(target.cooldown()+(1/target.speed()));
momentumStacks = Math.min(momentumStacks + 1, 10);
ActionIndicator.setAction(this);