-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get field 'unit_ids' for 'move' action #6
Comments
I've found a "trick" to make it work. If(lambda ctx: ctx.selected > 0x01, Array(
lambda ctx: ctx.selected, "unit_ids"/Int32ul
)) by "unit_ids"/If(lambda ctx: ctx.selected < 0xff, Array(lambda ctx: ctx.selected, Int32ul)) If |
Hi, do you mean |
|
I'm looking at the code and it already uses |
Oh sorry when I said I replaced that code:
I made a mistake (the code above does not exist). I meant I replaced this code:
The trick was to add |
Fixed in 247c246 |
Steps to reproduce:
Recorded game used (I've tried with many others and there is the same problem): https://www.voobly.com/files/view/53123676/qnc2045gpo3x3vkyyqks5h526pu725er
Code used:
Problem:
None of the 'move' action has the field 'unit_ids'
I see that this field should be present (excepted if moving the same unit as previous command):
https://github.com/happyleavesaoc/aoc-mgz/blob/master/mgz/body/actions.py#L63
I'm not fluent in python so please forgive me if I made a simple mistake
Thanks for your work!
The text was updated successfully, but these errors were encountered: