diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index ab6ea532..6b0f1555 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -12,9 +12,11 @@ import engine.Enum; import engine.Enum.DispatchChannel; import engine.Enum.GameObjectType; import engine.gameManager.GroupManager; +import engine.gameManager.PowersManager; import engine.gameManager.SessionManager; import engine.job.JobScheduler; import engine.jobs.RefreshGroupJob; +import engine.math.Vector3fImmutable; import engine.net.AbstractNetMsg; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -24,6 +26,7 @@ import engine.net.client.msg.LoadStructureMsg; import engine.net.client.msg.MoveToPointMsg; import engine.net.client.msg.UnloadObjectsMsg; import engine.objects.*; +import engine.powers.EffectsBase; import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; @@ -525,6 +528,15 @@ public enum InterestManager implements Runnable { updateStaticList(player, origin); updateMobileList(player, origin); + // apply the 1 box restriction + for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ + if(origin.machineID == pc.getClientConnection().machineID){ + //add deatshroud effect + PowersManager.applyPower(player, player, Vector3fImmutable.ZERO, 1672601862, 999, false); + return; + } + } + } public synchronized void HandleLoadForTeleport(PlayerCharacter playerCharacter) {