#47859: UnitState == OnDomesticTile not working with Defend_Bonus effect Open Date: 2023-04-14 20:30 Last Update: 2023-06-10 19:48 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/47859 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47859 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-06-10 19:48 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted --------------------------------------------------------------------- Ticket Status: Reporter: bard Owner: cazfi Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.8 Component: Documentation Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: When I test a ruleset effect like the following one, it doesn't seem to work: type = "Defend_Bonus" value = 50 reqs = { "type", "name", "range", "present" "Extra", "Fort", "Local", TRUE "UnitState", "OnDomesticTile", "Local", FALSE } If it is not a bug, I'd like to ask to implement this requirement: 1) The usual rule for Defend_Bonus is that it checks the terrain of the defender, but it checks the attacking unit. I was expecting that such Fort would grant a defense bonus, except when the attacked tile is domestic for the attacker. 2) Or alternatively to check the unit state of the defender, that could be useful to give a defense bonus only when the defender is on a domestic tile. I personally prefer the first one, but both cases would be useful for rulesets. -- 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/47859 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47859