v0.8.2c: fixed mage's staff missing enchant names

This commit is contained in:
Evan Debenham 2020-08-22 20:21:15 -04:00
parent 39c5da6061
commit 8e752aceef

View File

@ -266,7 +266,8 @@ public class MagesStaff extends MeleeWeapon {
if (wand == null) {
return super.name();
} else {
return Messages.get(wand, "staff_name");
String name = Messages.get(wand, "staff_name");
return enchantment != null && (cursedKnown || !enchantment.curse()) ? enchantment.name( name ) : name;
}
}