From b3bed58a4b9736bfb90c0693a505761a90b5d267 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 18 Aug 2023 11:06:48 -0400 Subject: [PATCH] Tweak to minion slot calculus. --- .../net/client/handlers/MinionTrainingMsgHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java index 3d2afe07..22a60adf 100644 --- a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java +++ b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java @@ -158,11 +158,15 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { siegeMob.setSpawnTime(10); Building building = BuildingManager.getBuilding(((MinionTrainingMessage) baseMsg).getBuildingID()); - int slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob); siegeMob.building = building; siegeMob.parentZone = zone; + // Slot siege minion + + int slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob); + slot = slot + 1; // First slot is for the captain + BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); siegeMob.bindLoc = building.getLoc().add(slotLocation.getLocation());