v2.0.0: fixed blacksmith not taking a cursed equipped pickaxe

This commit is contained in:
Evan Debenham
2022-11-29 12:03:50 -05:00
parent e502680851
commit 2700debaf5

View File

@@ -120,6 +120,7 @@ public class Blacksmith extends NPC {
tell( Messages.get(this, "blood_2") );
} else {
if (pick.isEquipped( Dungeon.hero )) {
pick.cursed = false; //so that it can always be removed
pick.doUnequip( Dungeon.hero, false );
}
pick.detach( Dungeon.hero.belongings.backpack );