Browse Source

blocked player character specific block in minion training message handler

combat-2
FatBoy-DOTC 1 year ago
parent
commit
e7e740dff1
  1. 3
      src/engine/net/client/handlers/MinionTrainingMsgHandler.java

3
src/engine/net/client/handlers/MinionTrainingMsgHandler.java

@ -74,7 +74,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { @@ -74,7 +74,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
DbManager.removeFromCache(toRemove);
if(toRemove.guardCaptain.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
PlayerCharacter petOwner = (PlayerCharacter) toRemove.guardCaptain;
if (petOwner != null) {
@ -85,6 +85,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { @@ -85,6 +85,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
Dispatch dispatch = Dispatch.borrow(petOwner, petMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
}
}
// we Found the move to remove, lets break the for loop so it doesnt look for more.

Loading…
Cancel
Save