Browse Source

pet debugging

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
8f6e13102d
  1. 4
      src/engine/gameManager/PowersManager.java
  2. 1
      src/engine/net/client/ClientMessagePump.java

4
src/engine/gameManager/PowersManager.java

@ -168,11 +168,9 @@ public enum PowersManager { @@ -168,11 +168,9 @@ public enum PowersManager {
if (usePowerA(msg, origin, sendCastToSelf)) {
// Cast failed for some reason, reset timer
ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(msg.getSourceID()), "Sending Recycle Message");
RecyclePowerMsg recyclePowerMsg = new RecyclePowerMsg(msg.getPowerUsedID());
Dispatch dispatch = Dispatch.borrow(origin.getPlayerCharacter(), recyclePowerMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);
ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(msg.getSourceID()), "Recycle Message Sent");
// Send Fail to cast message
PlayerCharacter pc = SessionManager
.getPlayerCharacter(origin);
@ -186,8 +184,6 @@ public enum PowersManager { @@ -186,8 +184,6 @@ public enum PowersManager {
pc.setIsCasting(false);
}
} else{
ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(((PerformActionMsg) msg).getSourceID()), "Failed To Cast");
}
}

1
src/engine/net/client/ClientMessagePump.java

@ -1913,7 +1913,6 @@ public class ClientMessagePump implements NetMsgHandler { @@ -1913,7 +1913,6 @@ public class ClientMessagePump implements NetMsgHandler {
break;
case POWER:
PowersManager.usePower((PerformActionMsg) msg, origin, false);
ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(((PerformActionMsg) msg).getSourceID()), "Starting To Cast");
break;
case REQUESTMELEEATTACK:
CombatManager.setAttackTarget((AttackCmdMsg) msg, origin);

Loading…
Cancel
Save