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