This commit is contained in:
2025-03-08 07:08:34 -06:00
parent 44b5e8cfd9
commit 4b6b209188
2 changed files with 24 additions and 25 deletions
+14 -15
View File
@@ -5199,20 +5199,17 @@ public class PlayerCharacter extends AbstractCharacter {
if (this.isBoxed){// && !this.containsEffect(1672601862)) {
//PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
//if(!this.title.equals(CharacterTitle.PVE)){
// this.title = CharacterTitle.PVE;
// InterestManager.setObjectDirty(this);
// InterestManager.reloadCharacter(this, false);
//}
if(!this.containsEffect(496607208)){
PowersManager.applyPower(this,this,this.loc,-2133617927,40,false);
if(!this.title.equals(CharacterTitle.PVE)){
this.title = CharacterTitle.PVE;
InterestManager.setObjectDirty(this);
InterestManager.reloadCharacter(this, false);
}
}else {
//if (!this.title.equals(CharacterTitle.NONE)) {
// this.title = CharacterTitle.NONE;
// InterestManager.setObjectDirty(this);
// InterestManager.reloadCharacter(this, false);
//}
if (!this.title.equals(CharacterTitle.NONE)) {
this.title = CharacterTitle.NONE;
InterestManager.setObjectDirty(this);
InterestManager.reloadCharacter(this, false);
}
}
}
if (this.isFlying()) {
@@ -5269,6 +5266,7 @@ public class PlayerCharacter extends AbstractCharacter {
InterestManager.setObjectDirty(pc);
InterestManager.reloadCharacter(pc, true);
pc.setDirtyLoad(true);
//pc.getClientConnection().forceDisconnect();
}
}
player.isBoxed = false;
@@ -5277,10 +5275,11 @@ public class PlayerCharacter extends AbstractCharacter {
InterestManager.setObjectDirty(player);
InterestManager.reloadCharacter(player, true);
player.setDirtyLoad(true);
//player.getClientConnection().forceDisconnect();
}
if (player.containsEffect(1672601862)) {
player.removeEffectBySource(EffectSourceType.DeathShroud, 41, false);
}
//if (player.containsEffect(1672601862)) {
// player.removeEffectBySource(EffectSourceType.DeathShroud, 41, false);
//}
}else{
ChatManager.chatSystemInfo(player, "All Boxes Must Be In Safezone To Switch");
}