v0.9.1c: fixed runic transference when seal & armor have the same glyph

This commit is contained in:
Evan Debenham 2021-01-06 18:49:03 -05:00
parent 710b65beba
commit aac9cf7367

View File

@ -107,7 +107,8 @@ public class BrokenSeal extends Item {
GLog.w(Messages.get(BrokenSeal.class, "unknown_armor"));
} else if (armor.cursed || armor.level() < 0){
GLog.w(Messages.get(BrokenSeal.class, "degraded_armor"));
} else if (armor.glyph != null && ((BrokenSeal)curItem).getGlyph() != null) {
} else if (armor.glyph != null && ((BrokenSeal)curItem).getGlyph() != null
&& armor.glyph.getClass() != ((BrokenSeal) curItem).getGlyph().getClass()) {
GameScene.show(new WndOptions(Messages.get(BrokenSeal.class, "choose_title"),
Messages.get(BrokenSeal.class, "choose_desc"),
armor.glyph.name(),