#45276: AI: Builds Walls when wants martial law Open Date: 2022-07-30 08:28 Last Update: 2022-11-21 04:38 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/45276 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45276 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-11-21 04:38 Updated by: cazfi * Status Update from Open to Closed * Owner Update from (None) to cazfi * Resolution Update from None to Fixed Comment: This actually got resolved as part of refactoring needed in #45595 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.0.5 Component: AI Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: military_advisor_choose_build() enters defender selection block also when it wants them primarily for their martial law effect. That block also considers building walls (defensive buildings in general). There's nothing preventing it from selecting building instead of unit even when martial law was requested. -- 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/45276 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45276