v0.4.0: fixed statues sometimes having cursed weapons

This commit is contained in:
Evan Debenham 2016-06-11 18:33:57 -04:00 committed by Evan Debenham
parent 673467b0fd
commit e94d2b4874

View File

@ -55,7 +55,7 @@ public class Statue extends Mob {
do {
weapon = (Weapon)Generator.random( Generator.Category.WEAPON );
} while (!(weapon instanceof MeleeWeapon) || weapon.level() < 0);
} while (!(weapon instanceof MeleeWeapon) || weapon.cursed);
weapon.identify();
weapon.enchant( Enchantment.random() );