forked from MagicBane/Server
box flag checker
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user