#44769: Fix illegal movements by edit.unit_move() Open Date: 2022-06-06 22:01 Last Update: 2022-06-06 22:01 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44769 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44769 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-06-06 22:01 Updated by: ihnatus * New Ticket "Fix illegal movements by edit.unit_move()" created --------------------------------------------------------------------- Ticket Status: Reporter: ihnatus Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.3 Component: Scripting API Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: I was pretty sure that calling (Archers):move(TileNearbyWithEnemyMigrants, 1) will make the Archers capture the Migrants, or at worst case it will be blocked, but in fact it puts the archers on the same tile with enemy units without capturing them. Likely, it can create other illegal positions. Btw, I can't understand, would 3.0 or later method ever do some actions you'd expect from emulating arrow key pressed by Lua. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/44769 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44769