[Freeciv-tickets] [freeciv] #47859: UnitState == OnDomesticTile not working with Defend_Bonus effect

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Jun 17 12:12:57 JST 2023


#47859: UnitState == OnDomesticTile not working with Defend_Bonus effect

  Open Date: 2023-04-14 20:30
Last Update: 2023-06-17 06:12

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-17 06:12 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


---------------------------------------------------------------------
Ticket Status:

      Reporter: bard
         Owner: cazfi
          Type: Patches
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.0.8
     Component: Documentation
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

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



More information about the Freeciv-tickets mailing list
Back to archive index