v0.7.5a: adjusted how teleportation effects handle boss floors
This commit is contained in:
parent
a6c48b25fc
commit
e4bf20bc98
|
@ -109,6 +109,11 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
|
|
||||||
public static void teleportHero( Hero hero ) {
|
public static void teleportHero( Hero hero ) {
|
||||||
|
|
||||||
|
if (Dungeon.bossLevel()){
|
||||||
|
GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int count = 10;
|
int count = 10;
|
||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
|
@ -118,7 +123,7 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
}
|
}
|
||||||
} while (pos == -1);
|
} while (pos == -1);
|
||||||
|
|
||||||
if (pos == -1 || Dungeon.bossLevel()) {
|
if (pos == -1) {
|
||||||
|
|
||||||
GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") );
|
GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user