Browse Source

must be in safezone to switch boxes

lakebane-new-effects
FatBoy-DOTC 1 week ago
parent
commit
048474b014
  1. 20
      src/engine/objects/PlayerCharacter.java

20
src/engine/objects/PlayerCharacter.java

@ -5229,14 +5229,22 @@ public class PlayerCharacter extends AbstractCharacter {
} }
} }
for(PlayerCharacter pc : sameMachine) boolean valid = true;
pc.isBoxed = true; for(PlayerCharacter pc : sameMachine){
if(!pc.safeZone)
player.isBoxed = false; valid = false;
if(player.containsEffect(1672601862)) {
player.removeEffectBySource(EffectSourceType.DeathShroud,41,false);
} }
if(valid) {
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){ public static boolean checkIfBoxed(PlayerCharacter player){
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) { if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) {

Loading…
Cancel
Save