v0.7.5a: adjusted how teleportation effects handle boss floors

This commit is contained in:
Evan Debenham 2019-10-04 15:02:43 -04:00
parent a6c48b25fc
commit e4bf20bc98

View File

@ -109,6 +109,11 @@ public class ScrollOfTeleportation extends Scroll {
public static void teleportHero( Hero hero ) {
if (Dungeon.bossLevel()){
GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") );
return;
}
int count = 10;
int pos;
do {
@ -118,7 +123,7 @@ public class ScrollOfTeleportation extends Scroll {
}
} while (pos == -1);
if (pos == -1 || Dungeon.bossLevel()) {
if (pos == -1) {
GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") );