v0.7.2: more bugfixes:

- fixed fetid rat stink cloud persisting in rare cases
- fixed hero pressing tiles while teleporting when they're flying
This commit is contained in:
Evan Debenham 2019-02-05 16:19:05 -05:00
parent 86199bb40f
commit f3702048be
2 changed files with 5 additions and 5 deletions

View File

@ -100,7 +100,7 @@ public class ScrollOfTeleportation extends Scroll {
}
appear( hero, pos );
Dungeon.level.press( pos, hero );
if (!hero.flying) Dungeon.level.press( pos, hero );
Dungeon.observe();
GameScene.updateFog();
@ -126,7 +126,7 @@ public class ScrollOfTeleportation extends Scroll {
GLog.i( Messages.get(ScrollOfTeleportation.class, "tele") );
appear( hero, pos );
Dungeon.level.press( pos, hero );
if (!hero.flying) Dungeon.level.press( pos, hero );
Dungeon.observe();
GameScene.updateFog();
@ -174,7 +174,7 @@ public class ScrollOfTeleportation extends Scroll {
int pos = Random.element(candidates);
GLog.i( Messages.get(ScrollOfTeleportation.class, "tele") );
appear( hero, pos );
Dungeon.level.press( pos, hero );
if (!hero.flying) Dungeon.level.press( pos, hero );
Dungeon.observe();
GameScene.updateFog();
}

View File

@ -74,8 +74,8 @@ public class FetidRatSprite extends MobSprite {
}
@Override
public void die() {
super.die();
public void kill() {
super.kill();
if (cloud != null) {
cloud.on = false;