box flag checker

This commit is contained in:
2024-05-28 22:10:35 -05:00
parent ae01a421de
commit ead86efcf6
2 changed files with 43 additions and 34 deletions
+16 -16
View File
@@ -4859,8 +4859,8 @@ public class PlayerCharacter extends AbstractCharacter {
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
//}
if(this.isEnteredWorld() && this.isActive()){
if( this.getLevel() < 10) {
if(this.isEnteredWorld() && this.isActive()) {
if (this.getLevel() < 10) {
this.setLevel((short) 10);
boolean hasConc = false;
for (Item i : this.getCharItemManager().getInventory()) {
@@ -4873,20 +4873,20 @@ public class PlayerCharacter extends AbstractCharacter {
}
}
//if(this.isBoxed) {
// if(this.title.equals(CharacterTitle.BOX) == false) {
// this.title = CharacterTitle.BOX;
// InterestManager.reloadCharacter(this);
// }
// if (this.containsEffect(1672601862) == false) {//Deathshroud
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
// }
// }else{
// if(this.title.equals(CharacterTitle.NONE) == false) {
// this.title = CharacterTitle.NONE;
// InterestManager.reloadCharacter(this);
// }
// }
if (this.isBoxed) {
if (this.title.equals(CharacterTitle.BOX) == false) {
this.title = CharacterTitle.BOX;
InterestManager.reloadCharacter(this);
}
if (this.containsEffect(1672601862) == false) {//Deathshroud
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
}
} else {
if (this.title.equals(CharacterTitle.NONE) == false) {
this.title = CharacterTitle.NONE;
InterestManager.reloadCharacter(this);
}
}
}
} catch (Exception e) {