v2.0.0: adjusted meditate to count as 5 delays of 1 not 1 delay of 5
This commit is contained in:
@@ -608,7 +608,10 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -726,7 +726,7 @@ public class Hero extends Char {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void spendConstant(float time) {
|
||||
public void spendConstant(float time) {
|
||||
justMoved = false;
|
||||
super.spendConstant(time);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user