v3.3.0: fixed transmuting tipped darts destroying the original stack

This commit is contained in:
Evan Debenham
2025-10-26 11:40:07 -04:00
parent 02b9b75c6b
commit b9f900923c

View File

@@ -125,7 +125,7 @@ public class ScrollOfTransmutation extends InventoryScroll {
}
Dungeon.hero.spend(-Dungeon.hero.cooldown()); //cancel equip/unequip time
} else {
if (item instanceof MissileWeapon){
if (item instanceof MissileWeapon && !(item instanceof TippedDart)){
item.detachAll(Dungeon.hero.belongings.backpack);
} else {
item.detach(Dungeon.hero.belongings.backpack);