v2.0.0: adjusted meditate to count as 5 delays of 1 not 1 delay of 5

This commit is contained in:
Evan Debenham
2023-03-06 14:10:47 -05:00
parent 21a9320b17
commit 3ab3e231d8
2 changed files with 5 additions and 2 deletions

View File

@@ -608,7 +608,10 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
Buff.affect(hero, MeditateResistance.class, 5f); Buff.affect(hero, MeditateResistance.class, 5f);
} }
hero.spendAndNext(5f); //we process this as 5x wait actions instead of one 5 tick action to prevent
// effects like time freeze from eating the whole action duration
for (int i = 0; i < 5; i++) hero.spendConstant(Actor.TICK);
hero.next();
Buff.affect(hero, MonkEnergy.class).abilityUsed(this); Buff.affect(hero, MonkEnergy.class).abilityUsed(this);
} }

View File

@@ -726,7 +726,7 @@ public class Hero extends Char {
} }
@Override @Override
protected void spendConstant(float time) { public void spendConstant(float time) {
justMoved = false; justMoved = false;
super.spendConstant(time); super.spendConstant(time);
} }