v1.3.0: stones of blink now drop to the ground if they fail to tele

This commit is contained in:
Evan Debenham
2022-07-05 13:11:35 -04:00
parent ad386aac5c
commit 49b55dc3f5
@@ -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();
}
}
}