From 777a65597c5a029800731a1681e5093e70510480 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 23 Feb 2022 14:50:06 -0500 Subject: [PATCH] v1.2.0: fixed the freerunner gaining momentum while freerunning --- .../shatteredpixeldungeon/actors/buffs/Momentum.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Momentum.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Momentum.java index d6dea05d5..efebd8523 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Momentum.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Momentum.java @@ -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);