Browse Source

combat bug fix

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
0e6ee13926
  1. 5
      src/engine/objects/PlayerCharacter.java

5
src/engine/objects/PlayerCharacter.java

@ -4838,8 +4838,6 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4838,8 +4838,6 @@ public class PlayerCharacter extends AbstractCharacter {
public static boolean checkIfBoxed(PlayerCharacter player){
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(pc.isBoxed)
continue;
if(!pc.isActive)
continue;
@ -4847,8 +4845,9 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4847,8 +4845,9 @@ public class PlayerCharacter extends AbstractCharacter {
if(!pc.enteredWorld)
continue;
if(pc.getClientConnection().machineID.equals(player.getClientConnection().machineID))
if(!pc.isBoxed && pc.getClientConnection().machineID.equals(player.getClientConnection().machineID))
return true;
}
return false;
}

Loading…
Cancel
Save