v0.4.0: fixed statues sometimes having cursed weapons
This commit is contained in:
parent
673467b0fd
commit
e94d2b4874
|
@ -55,7 +55,7 @@ public class Statue extends Mob {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
weapon = (Weapon)Generator.random( Generator.Category.WEAPON );
|
weapon = (Weapon)Generator.random( Generator.Category.WEAPON );
|
||||||
} while (!(weapon instanceof MeleeWeapon) || weapon.level() < 0);
|
} while (!(weapon instanceof MeleeWeapon) || weapon.cursed);
|
||||||
|
|
||||||
weapon.identify();
|
weapon.identify();
|
||||||
weapon.enchant( Enchantment.random() );
|
weapon.enchant( Enchantment.random() );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user