v2.1.0: fixed speedy stealth +1 requiring existing momentum
This commit is contained in:
+6
-3
@@ -70,7 +70,8 @@ public class Momentum extends Buff implements ActionIndicator.Action {
|
|||||||
if (freerunCooldown == 0 && !freerunning() && 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);
|
momentumStacks = Math.min(momentumStacks + 2, 10);
|
||||||
movedLastTurn = true;
|
movedLastTurn = true;
|
||||||
ActionIndicator.refresh();
|
ActionIndicator.setAction(this);
|
||||||
|
BuffIndicator.refreshHero();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (freerunTurns > 0){
|
if (freerunTurns > 0){
|
||||||
@@ -81,7 +82,7 @@ public class Momentum extends Buff implements ActionIndicator.Action {
|
|||||||
momentumStacks = (int)GameMath.gate(0, momentumStacks-1, Math.round(momentumStacks * 0.667f));
|
momentumStacks = (int)GameMath.gate(0, momentumStacks-1, Math.round(momentumStacks * 0.667f));
|
||||||
if (momentumStacks <= 0) {
|
if (momentumStacks <= 0) {
|
||||||
ActionIndicator.clearAction(this);
|
ActionIndicator.clearAction(this);
|
||||||
if (freerunCooldown <= 0) detach();
|
BuffIndicator.refreshHero();
|
||||||
} else {
|
} else {
|
||||||
ActionIndicator.refresh();
|
ActionIndicator.refresh();
|
||||||
}
|
}
|
||||||
@@ -98,6 +99,7 @@ public class Momentum extends Buff implements ActionIndicator.Action {
|
|||||||
postpone(target.cooldown()+(1/target.speed()));
|
postpone(target.cooldown()+(1/target.speed()));
|
||||||
momentumStacks = Math.min(momentumStacks + 1, 10);
|
momentumStacks = Math.min(momentumStacks + 1, 10);
|
||||||
ActionIndicator.setAction(this);
|
ActionIndicator.setAction(this);
|
||||||
|
BuffIndicator.refreshHero();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,7 +127,8 @@ public class Momentum extends Buff implements ActionIndicator.Action {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int icon() {
|
public int icon() {
|
||||||
return BuffIndicator.MOMENTUM;
|
if (momentumStacks > 0 || freerunCooldown > 0) return BuffIndicator.MOMENTUM;
|
||||||
|
else return BuffIndicator.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user