boxshroud fixes

This commit is contained in:
2024-02-14 13:35:10 -06:00
parent f5b08c1868
commit e414304e94
2 changed files with 16 additions and 10 deletions
+16 -1
View File
@@ -4814,7 +4814,22 @@ public class PlayerCharacter extends AbstractCharacter {
this.safeZone = this.isInSafeZone();
if(this.isBoxed == true && this.containsEffect(1672601862) == false)
if(this.isBoxed && this.containsEffect(1672601862) == false)
this.isBoxed = false;
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(pc.isActive() == false)
continue;
if(pc.isEnteredWorld() == false)
continue;
if(this.getClientConnection().machineID.equals(pc.getClientConnection().machineID)){
//add deatshroud effect
if(pc.isBoxed == true)
continue;
this.isBoxed = true;
return;
}
}
if(this.isBoxed)
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
} catch (Exception e) {