From 85bf30cbdd6c5c69ac6efa924a35ccaf0bd19346 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 11 Feb 2024 21:26:00 -0600 Subject: [PATCH] remove DS on login when no other boxes logged in --- .../InterestManagement/InterestManager.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index 923fb08c..e49c2d8e 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -8,10 +8,14 @@ package engine.InterestManagement; +import com.sun.corba.se.spi.orbutil.fsm.ActionBase; +import com.sun.corba.se.spi.orbutil.fsm.FSM; +import com.sun.corba.se.spi.orbutil.fsm.Input; 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; @@ -24,11 +28,13 @@ import engine.net.client.msg.LoadStructureMsg; import engine.net.client.msg.MoveToPointMsg; import engine.net.client.msg.UnloadObjectsMsg; import engine.objects.*; +import engine.powers.ActionsBase; import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; import java.util.ArrayList; import java.util.HashSet; +import java.util.Map; import static engine.math.FastMath.sqr; @@ -531,7 +537,16 @@ public enum InterestManager implements Runnable { ml.promoteToItem(player); player.getCharItemManager().addGoldToInventory(50000, true); } - + player.isBoxed = false; + for (String name : player.effects.keySet()) { + Effect eff = player.effects.get(name); + if (eff == null) { + return; + } + //remove deathshroud here! + if (eff.getEffectToken() == 1672601862) + player.effects.remove(name); + } for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ if(pc.isActive() == false) continue;