There is a optionalTargetID field in the StartSkill message. As the name suggests it isn't always sent. I haven't tested this yet but I think the target ID is only set when the player targets a specific entity, like when directly clicking on it. If the player doesn't target a specific enemy (like when using the keyboard), the game just auto locks onto the nearest enemy (force rotating the character if necessary). This brings up the question if optionalTargetID being set means that the auto lock code is disabled?
And if this is the case, what do we do instead? Override the skill target?
I have a theory about why this is happening
There is a optionalTargetID field in the StartSkill message. As the name suggests it isn't always sent. I haven't tested this yet but I think the target ID is only set when the player targets a specific entity, like when directly clicking on it. If the player doesn't target a specific enemy (like when using the keyboard), the game just auto locks onto the nearest enemy (force rotating the character if necessary). This brings up the question if optionalTargetID being set means that the auto lock code is disabled? And if this is the case, what do we do instead? Override the skill target?