v2.5.0: fixed hero armor xfer granting warrior +1 level in some cases
This commit is contained in:
+2
-7
@@ -242,15 +242,10 @@ abstract public class ClassArmor extends Armor {
|
|||||||
if (armor.checkSeal() != null) {
|
if (armor.checkSeal() != null) {
|
||||||
inscribe(armor.glyph);
|
inscribe(armor.glyph);
|
||||||
seal = armor.checkSeal();
|
seal = armor.checkSeal();
|
||||||
if (seal.level() > 0) {
|
|
||||||
int newLevel = trueLevel() + 1;
|
|
||||||
level(newLevel);
|
|
||||||
Badges.validateItemLevelAquired(ClassArmor.this);
|
|
||||||
}
|
|
||||||
} else if (checkSeal() != null){
|
} 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
|
// and re-affixing it to the new armor
|
||||||
if (seal.level() > 0 && trueLevel() <= armor.trueLevel()){
|
if (seal.level() > 0){
|
||||||
int newLevel = trueLevel() + 1;
|
int newLevel = trueLevel() + 1;
|
||||||
level(newLevel);
|
level(newLevel);
|
||||||
Badges.validateItemLevelAquired(ClassArmor.this);
|
Badges.validateItemLevelAquired(ClassArmor.this);
|
||||||
|
|||||||
Reference in New Issue
Block a user