URL:
  <http://gna.org/bugs/?25259>

                 Summary: autoattack: a transport will attack before its cargo
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Wed 02 Nov 2016 05:18:00 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: In Progress
             Assigned to: sveinung
        Originator Email: 
             Open/Closed: Open
                 Release: TRUNK, 2.6, 2.5.5
         Discussion Lock: Any
        Operating System: None
         Planned Release: 
 Contains string changes: None

    _______________________________________________________

Details:

The autoattack code sorts the potential attackers from worst to best
probability of success against the target. Transported units are always seen
as better.

The autoattack is then performed, starting with the units with worst units. (A
unit with extremely bad odds won't attack since its odds are below the auto
attack threshold)

A comment indicates that the intention is to make a transported unit attack
before its transport does. This is reasonable. Losing the transport could mean
losing its cargo. The current implementation is therefore buggy.

Tangent: Not sure if the worst unit (that passes a threshold) should attack
first. It could make a horseman attack spear units (with a combat bonus
against it) before a unit without this weakness does. On the other hand it
makes it harder to make an enemy move its best units out of the way.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?25259>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to