From f08a06481294e4b9497c7d50915a8a87a054320c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 14 May 2019 18:04:40 -0400 Subject: [PATCH] v0.7.3: fixed cases where transmog effect may trigger on mage's staff --- .../shatteredpixeldungeon/items/wands/CursedWand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java index 5656a7877..6fbb491fc 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java @@ -426,7 +426,8 @@ public class CursedWand { //random transmogrification case 3: - if (origin == null){ + //skips this effect if there is no item to transmogrify + if (origin == null || !Dungeon.hero.belongings.contains(origin)){ cursedZap(origin, user, bolt, afterZap); return; }