Browse Source

combat bug fix

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
3553291d1d
  1. 8
      src/engine/objects/PlayerCharacter.java

8
src/engine/objects/PlayerCharacter.java

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

Loading…
Cancel
Save