Browse Source

box tweaking

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
d70f9f6dc3
  1. 3
      src/engine/InterestManagement/InterestManager.java

3
src/engine/InterestManagement/InterestManager.java

@ -529,6 +529,7 @@ public enum InterestManager implements Runnable {
updateMobileList(player, origin); updateMobileList(player, origin);
// apply the 1 box restriction // apply the 1 box restriction
player.isBoxed = false;
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(pc.isActive() == false) if(pc.isActive() == false)
continue; continue;
@ -538,6 +539,8 @@ public enum InterestManager implements Runnable {
if(origin.machineID.equals(pc.getClientConnection().machineID)){ if(origin.machineID.equals(pc.getClientConnection().machineID)){
//add deatshroud effect //add deatshroud effect
if(pc.isBoxed == true)
continue;
player.isBoxed = true; player.isBoxed = true;
return; return;
} }

Loading…
Cancel
Save