diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index 9435a0ea..b7359d8f 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -105,14 +105,12 @@ public class CommandService implements INetworkDispatch { } } - // This SHOULD be invalid locomotions but we don't track these currently. - // Postures are the best we can do. - for (byte posture : command.getInvalidPostures()) { - if (actor.getPosture() == posture) { - //return false; + for (byte locomotion : command.getInvalidLocomotions()) { + if (actor.getLocomotion() == locomotion) { + return false; } } - + switch (command.getTargetType()) { case 0: // Target Not Used For This Command break;