From 5af23eab7d2b1b4e1870bd25111e8022c20ec988 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 16 Sep 2022 22:35:37 +0200 Subject: [PATCH] fixed Orb of Teleport/Illusion thinking that they are unusable --- orbs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orbs.cpp b/orbs.cpp index 8ca44196..4c54e3d2 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -1523,9 +1523,9 @@ EX eItem targetRangedOrb(cell *c, orbAction a) { && INI && CHK_ROLLBACK(passable(c, NULL, P_MIRROR), XLAT("Cannot cast illusion here!"))) { if(!isCheck(a)) { changes.commit(), placeIllusion(c), apply_impact(c); - return itOrbIllusion; } else changes.rollback(); + return itOrbIllusion; } // (3) teleport @@ -1538,9 +1538,9 @@ EX eItem targetRangedOrb(cell *c, orbAction a) { ) { if(!isCheck(a)) { changes.commit(), teleportTo(c), apply_impact(c), println(hlog, "commiting teleport ", items[itOrbTeleport]); - return itOrbTeleport; } else changes.rollback(); + return itOrbTeleport; } // (4) remove an illusion