From 49b55dc3f5b872ec1d4321f6f7c8997b77de2b80 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 5 Jul 2022 13:11:35 -0400 Subject: [PATCH] v1.3.0: stones of blink now drop to the ground if they fail to tele --- .../shatteredpixeldungeon/items/stones/StoneOfBlink.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfBlink.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfBlink.java index ad47576c6..fafc68ff7 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfBlink.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfBlink.java @@ -21,6 +21,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.stones; +import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation; @@ -52,6 +53,8 @@ public class StoneOfBlink extends Runestone { @Override protected void activate(int cell) { - ScrollOfTeleportation.teleportToLocation(curUser, cell); + if (!ScrollOfTeleportation.teleportToLocation(curUser, cell)){ + Dungeon.level.drop(this, cell).sprite.drop(); + } } }