fredi-68 / luswca

Remember to put full project title here
GNU General Public License v3.0
0 stars 0 forks source link

Targeting with mouse breaks skill parser #47

Open fredi-68 opened 5 years ago

fredi-68 commented 5 years ago

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?