v0.4.0: fixed the wandmaker sometimes giving cursed wands

This commit is contained in:
Evan Debenham 2016-06-12 10:47:14 -04:00 committed by Evan Debenham
parent 8ec81a0c33
commit edbb426764

View File

@ -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;