I had a helicopter stationed where the picture shows a star. At sea, next to a city.
I got the message "Your Helicopter lost to an attack by a Zapotec AEGIS Cruiser".
According to the wiki, "Helicopters may be attacked by ground units". I am playing with the Classic ruleset, which states that the AEGIS Cruiser is a Sea class unit (https://github.com/freeciv/freeciv/blob ... ts.ruleset).
I surmised that helicopters could not be attacked by sea units. What am I getting wrong?
MikeDuk wrote: ↑Mon Nov 07, 2022 7:06 amAccording to the wiki, "Helicopters may be attacked by ground units".
Ok, that's misleading. The point there is (I believe) that Helicopter is not an "Air" unit that are unreachable by ground units (or any non-Fighter unit). So Helicopters can be attacked by any unit.
What you also should look at in the ruleset about can unit A attack unit B is "Attack" action enablers in game.ruleset. AEGIS used one with "AttFromNonNative" since its unit class has this flag (i.e.: it can attack from cities that, you see, stay on land), and the sea tile is native for it so you don't even need to check if it has "AttackNonNative" flag (while it actually has it). Also, as it's said, "Helicopter" class has no "Unreachable" flag, so no special reachability rules ("targets" lists of the attacker) are applied.