From edbb426764c3fceb0e66de28d11653eea1b5c218 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 12 Jun 2016 10:47:14 -0400 Subject: [PATCH] v0.4.0: fixed the wandmaker sometimes giving cursed wands --- .../shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java index 5366edbf2..61a86ab6a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java @@ -267,11 +267,15 @@ public class Wandmaker extends NPC { given = false; wand1 = (Wand) Generator.random(Generator.Category.WAND); + wand1.cursed = false; + wand1.identify(); wand1.upgrade(); do { wand2 = (Wand) Generator.random(Generator.Category.WAND); } while (wand2.getClass().equals(wand1.getClass())); + wand2.cursed = false; + wand2.identify(); wand2.upgrade(); return true;