diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index d68ecb04..d21250ea 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -96,7 +96,7 @@ public class ManageNPCMsg extends ClientNetMsg { writer.putString("A weapon suited to laying siege"); } - private static void serializeGuardList(ByteBufferWriter writer, int minion) { + private static void serializeGuardList(ByteBufferWriter writer, int minion, Mob captain) { writer.putInt(1); @@ -106,7 +106,7 @@ public class ManageNPCMsg extends ClientNetMsg { writer.putInt(minion); writer.putInt(1); writer.putInt(minion); - writer.putInt(1); + writer.putInt(captain.getRank());//minion rank writer.put((byte) 0); writer.putInt(600); //roll time @@ -669,7 +669,7 @@ public class ManageNPCMsg extends ClientNetMsg { ConcurrentHashMap siegeMinions = mobA.getSiegeMinionMap(); writer.putInt(siegeMinions.size() + 1); - serializeGuardList(writer, mobA.getContract().getContractID()); //Guard + serializeGuardList(writer, mobA.getContract().getContractID(), mobA); //Guard if (siegeMinions != null && siegeMinions.size() > 0)