v0.4.0: fixed the wandmaker sometimes giving cursed wands
This commit is contained in:
parent
8ec81a0c33
commit
edbb426764
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user