remove safezone restriction from box swapping

This commit is contained in:
2025-03-24 20:35:52 -05:00
parent 5c53bf875a
commit 41c3ab5335
+2 -10
View File
@@ -5245,21 +5245,13 @@ public class PlayerCharacter extends AbstractCharacter {
}
}
boolean valid = true;
for(PlayerCharacter pc : sameMachine){
if(!pc.safeZone)
valid = false;
}
if(valid) {
for (PlayerCharacter pc : sameMachine)
pc.isBoxed = true;
for (PlayerCharacter pc : sameMachine) {
pc.isBoxed = true;
player.isBoxed = false;
if (player.containsEffect(1672601862)) {
player.removeEffectBySource(EffectSourceType.DeathShroud, 41, false);
}
}else{
ChatManager.chatSystemInfo(player, "All Boxes Must Be In Safezone To Switch");
}
}
public static boolean checkIfBoxed(PlayerCharacter player){