diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index bae8a273..f1d6fd24 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -1242,7 +1242,7 @@ public enum CombatManager { DispatchMessage.dispatchMsgToInterestArea(pc, rwss, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, false, false); } - private static void toggleSit(boolean toggle, ClientConnection origin) { + public static void toggleSit(boolean toggle, ClientConnection origin) { PlayerCharacter pc = SessionManager.getPlayerCharacter(origin); diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 6065a4b1..851b2b97 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -163,6 +163,9 @@ public enum PowersManager { public static void usePower(final PerformActionMsg msg, ClientConnection origin, boolean sendCastToSelf) { + PlayerCharacter pc = SessionManager.getPlayerCharacter(origin); + CombatManager.toggleSit(false,origin); + if (usePowerA(msg, origin, sendCastToSelf)) { // Cast failed for some reason, reset timer @@ -171,9 +174,6 @@ public enum PowersManager { DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY); // Send Fail to cast message - PlayerCharacter pc = SessionManager - .getPlayerCharacter(origin); - if (pc != null) { sendPowerMsg(pc, 2, msg); if (pc.isCasting()) {