URL: <http://gna.org/bugs/?22381>
Summary: Inconsistent nativity limits on source tile for regular attacks Project: Freeciv Submitted by: sveinung Submitted on: Tue 22 Jul 2014 12:18:46 PM UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: _______________________________________________________ Details: The function unit_attack_unit_at_tile_result() will check if the source tile is native to the attacking unit. The function unit_move_to_tile_test() will check if the attacking unit can exist at the source tile. A tile is native to a unit if its terrain is native or it has an extra that makes it native. A unit can exist on a tile if it (has a city AND (the unit's class has the flag BuildAnywhere OR an adjacent tile is native OR the city is part of a city channel)) OR (the tile is native unless (the units type has the flag Trireme AND the tile's terrain don't have the flag UnsafeCoast)). A comment in unit_move_to_tile_test() indicates that can exist is intentional and preferred. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?22381> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev