v0.9.3: rejuv steps no longer triggers while levitating
This commit is contained in:
parent
c067425783
commit
3b2aced50c
|
@ -930,6 +930,8 @@ public abstract class Level implements Bundlable {
|
||||||
Web.affectChar( ch );
|
Web.affectChar( ch );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ch.flying){
|
||||||
|
|
||||||
if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS)
|
if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS)
|
||||||
&& ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS)
|
&& ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS)
|
||||||
&& ch.buff(Talent.RejuvenatingStepsCooldown.class) == null){
|
&& ch.buff(Talent.RejuvenatingStepsCooldown.class) == null){
|
||||||
|
@ -946,8 +948,6 @@ public abstract class Level implements Bundlable {
|
||||||
Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS));
|
Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ch.flying){
|
|
||||||
|
|
||||||
if (pit[ch.pos]){
|
if (pit[ch.pos]){
|
||||||
if (ch == Dungeon.hero) {
|
if (ch == Dungeon.hero) {
|
||||||
Chasm.heroFall(ch.pos);
|
Chasm.heroFall(ch.pos);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user