forked from MagicBane/Server
bugfix: wrong type comparison.
This commit is contained in:
@@ -165,7 +165,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
|
|||||||
|
|
||||||
int slot;
|
int slot;
|
||||||
|
|
||||||
if (building.getBlueprint().equals(Enum.BuildingGroup.ARTYTOWER))
|
if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.ARTYTOWER))
|
||||||
slot = 2;
|
slot = 2;
|
||||||
else
|
else
|
||||||
slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain
|
slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain
|
||||||
|
|||||||
Reference in New Issue
Block a user