From 4a14785d3ce3ed1be674e373559eebdb72efef2d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 8 Dec 2021 19:58:13 -0500 Subject: [PATCH] v1.1.0: fixed fadeleaf also not working on boss floors --- .../plants/Fadeleaf.java | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Fadeleaf.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Fadeleaf.java index 2a8b4ef57..c3bbfa33a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Fadeleaf.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Fadeleaf.java @@ -75,27 +75,7 @@ public class Fadeleaf extends Plant { } else if (ch instanceof Mob && !ch.properties().contains(Char.Property.IMMOVABLE)) { - if (!Dungeon.bossLevel()) { - - int count = 20; - int newPos; - do { - newPos = Dungeon.level.randomRespawnCell(ch); - if (count-- <= 0) { - break; - } - } while (newPos == -1 || Dungeon.level.secret[newPos]); - - if (newPos != -1) { - - ch.pos = newPos; - if (((Mob) ch).state == ((Mob) ch).HUNTING) - ((Mob) ch).state = ((Mob) ch).WANDERING; - ch.sprite.place(ch.pos); - ch.sprite.visible = Dungeon.level.heroFOV[ch.pos]; - - } - } + ScrollOfTeleportation.teleportChar(ch); }