Summary: Pathfinding may prefer move+attack to simply
attacking adjacent target
                 Project: Freeciv
            Submitted by: brilliand
            Submitted on: Mon 10 Dec 2012 09:49:56 AM GMT
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.3.1
         Discussion Lock: Any
        Operating System: Microsoft Windows
         Planned Release: 



I have a dragoon in a city on a hill, and I want to use that dragoon to attack
a cannon on a diagonally adjacent hill.  However, the target hill has a river,
which seems to be throwing off the pathfinding.

| Hill+River (Cannon) | Plains              |
| Grassland+River     | Hill+City (Dragoon) |

When I try to attack the cannon, the dragoon opts to move through the
Grassland+River tile, which would surely by the right move if the other hill
were not occupied.  However, in this case such a move results in my dragoon
stepping outside the safety of the city into a relatively hard-to-defend
grassland tile, and throwing one of my cities into disorder for a turn because
I'm running a democracy in the civ2 ruleset.

(I also have a musketeer in that city, which is able to attack without
triggering this bug, but when I do that the cannon wins the fight.  I'm not
sure whether that's another bug or there's some rule I'm missing that would
make that make sense.)

I've attached a savegame - the city in question is "Mixcoac".


File Attachments:

Date: Mon 10 Dec 2012 09:49:56 AM GMT  Name: bugged_save.sav.bz2  Size: 27kB  
By: brilliand



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to