From 241292cf4d822fbb930846f365d12808f1ccac56 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 20 Jan 2024 13:46:21 -0500 Subject: [PATCH] v2.3.1: fixed cases where transmutation would not preserve quickslots --- .../items/scrolls/ScrollOfTransmutation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTransmutation.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTransmutation.java index 0674faa55..565ed0e8f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTransmutation.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTransmutation.java @@ -122,7 +122,7 @@ public class ScrollOfTransmutation extends InventoryScroll { item.detach(Dungeon.hero.belongings.backpack); if (!result.collect()) { Dungeon.level.drop(result, curUser.pos).sprite.drop(); - } else if (Dungeon.hero.belongings.getSimilar(result) != null){ + } else if (result.stackable && Dungeon.hero.belongings.getSimilar(result) != null){ result = Dungeon.hero.belongings.getSimilar(result); } }