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

                 Summary: Units in nested transport considered defensive units
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Sat 20 Apr 2013 01:48:01 PM JST
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.4.99-r22731
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

Units in nested transport are considered potential defensive units, although
they are unable to unload or attack.  Test case is to alter experimental
ruleset to give Cruise Missile a defensive rating of 4, then load Cruise
Missile in Mech. Inf. in Transport.  Attack with something, and the missile is
considered the defender.

>From comments in the code, I suspect that having Missiles be potential
defenders of Submarines and Stealth Fighters|Bombers being potential defenders
of Carriers may similarly be bugs (these also don't happen because of the
coincidental relation between the defense ratings of the transport and the
cargo).

Discovered when considering allowing AttFromNonNative units to be able to also
defend when non-native: thoughts on that idea appreciated, but the attached
bugfix patch likely gets priority.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 20 Apr 2013 01:48:02 PM JST  Name: check-unload-to-defend.patch 
Size: 1kB   By: persia

<http://gna.org/bugs/download.php?file_id=17778>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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