v2.5.0: fixed hero armor xfer granting warrior +1 level in some cases

This commit is contained in:
Evan Debenham
2024-08-25 10:49:13 -04:00
parent 4da36ed3fa
commit 46eec8265a

View File

@@ -242,15 +242,10 @@ abstract public class ClassArmor extends Armor {
if (armor.checkSeal() != null) {
inscribe(armor.glyph);
seal = armor.checkSeal();
if (seal.level() > 0) {
int newLevel = trueLevel() + 1;
level(newLevel);
Badges.validateItemLevelAquired(ClassArmor.this);
}
} else if (checkSeal() != null){
//automates the process of detaching the glyph manually
//automates the process of detaching the seal manually
// and re-affixing it to the new armor
if (seal.level() > 0 && trueLevel() <= armor.trueLevel()){
if (seal.level() > 0){
int newLevel = trueLevel() + 1;
level(newLevel);
Badges.validateItemLevelAquired(ClassArmor.this);