Browse Source

combat bug fix

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

6
src/engine/objects/PlayerCharacter.java

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

Loading…
Cancel
Save