Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000419Dwarf FortressCombat -- Generalpublic2010-04-04 14:172011-03-09 17:24
Matt_S 
Toady One 
normalminorsometimes
resolvedfixed 
0.31.01 
0.31.22 
0000419: Can attack creatures in melee across several Z levels
I fought an eagle vs eagle duel in arena mode, and I tried flying upwards to get distance from my opponent, but even across about 5 Z levels, he was able to bite my head. I figured out I was also able to attack and wrestle him back, using the 'A' menu.
Arena Mode, combat, Z axis
has duplicate 0000464resolved Toady One Dwarf killed 10z levels away 
has duplicate 0000693resolved Toady One Multiple simultaneous bugs. 
has duplicate 0001165resolved Toady One Shift A menu shows targets that are not anywhere within view, and are attackable. Save included. 
has duplicate 0003474resolved Logical2u Could attack through 40 z-levels 
has duplicate 0003652resolved Footkerchief Phantom Blind Cave Ogre 
has duplicate 0004029resolved Dwarfu Flying and attempting combat with a creature directly beneath you allows you to attack any creature in that tile any z-level. 
related to 0000362confirmed Footkerchief Interrupted by forgotten beast -- Through 20 z-levels of solid rock with no possible path 
related to 0002267acknowledged Footkerchief Martial trances can be triggered by distant and invisible underground creatures 
Issue History
2010-04-04 14:17Matt_SNew Issue
2010-04-04 16:48QloosTag Attached: Arena Mode
2010-04-04 16:48QloosTag Attached: combat
2010-04-04 16:48QloosTag Attached: Z axis
2010-04-05 09:04FootkerchiefRelationship addedparent of 0000464
2010-04-07 01:06FootkerchiefRelationship addedparent of 0000693
2010-04-07 01:07FootkerchiefSticky IssueNo => Yes
2010-04-08 02:50FootkerchiefNote Added: 0001988
2010-04-11 10:01smjjamesNote Added: 0002824
2010-04-14 15:57FootkerchiefRelationship addedparent of 0001165
2010-04-20 01:55Khym ChanurIssue Monitored: Khym Chanur
2010-04-22 22:47blazzanoNote Added: 0004677
2010-05-05 13:28FootkerchiefRelationship addedhas duplicate 0001769
2010-05-05 13:28FootkerchiefRelationship deletedhas duplicate 0001769
2010-06-15 10:39ContiIssue Monitored: Conti
2010-06-27 14:50QuilNote Added: 0009173
2010-06-27 15:51smjjamesNote Added: 0009175
2010-08-09 08:40Evil OneNote Added: 0011661
2010-08-09 08:41Evil OneNote Edited: 0011661bug_revision_view_page.php?bugnote_id=0011661#r4555
2010-08-09 08:43Evil OneNote Edited: 0011661bug_revision_view_page.php?bugnote_id=0011661#r4556
2010-08-09 08:51Evil OneNote Edited: 0011661bug_revision_view_page.php?bugnote_id=0011661#r4557
2010-10-26 18:49Logical2uRelationship addedhas duplicate 0003474
2010-11-17 07:03FootkerchiefRelationship addedhas duplicate 0003652
2010-11-17 10:09FootkerchiefRelationship addedrelated to 0000362
2011-02-19 15:31DwarfuRelationship addedhas duplicate 0004029
2011-03-09 04:04Toady OneStatusnew => resolved
2011-03-09 04:04Toady OneFixed in Version => 0.31.22
2011-03-09 04:04Toady OneResolutionopen => fixed
2011-03-09 04:04Toady OneAssigned To => Toady One
2011-03-09 04:56DwarfuSticky IssueYes => No
2011-03-09 07:36ContiIssue End Monitor: Conti
2011-03-09 17:24Khym ChanurIssue End Monitor: Khym Chanur
2011-03-13 17:43FootkerchiefRelationship replacedhas duplicate 0000464
2011-03-13 17:43FootkerchiefRelationship replacedhas duplicate 0000693
2011-03-13 17:44FootkerchiefRelationship replacedhas duplicate 0001165
2011-03-14 13:59FootkerchiefRelationship addedrelated to 0002267

Notes
(0001988)
Footkerchief   
2010-04-08 02:50   
Apparently this can also cause teleportation http://www.bay12games.com/forum/index.php?topic=53464.0 [^]
(0002824)
smjjames   
2010-04-11 10:01   
I had something similar in the arena. I was playing one of the flying cavern creatures (forget which one) and as I was trying to kill an olmman, I moved to the edge and past it, which resulted in the olmman falling off. I was still able to grasp and attack it despite there being one z-level of open space between us.
(0004677)
blazzano   
2010-04-22 22:47   
For what it's worth, I have seen this behavior (or one similar to it) in 40d. It was in Adventurer mode, and one of my companions was attacked and wrestled by a cave swallowman more than five Z levels up. I was able to hit him with melee attacks; with the fatal blow, the cave swallowman suddenly appeared on my z-level, and then continued flying off to the side in the standard melee weapon "propelled away by the force of the blow" thing.
(0009173)
Quil   
2010-06-27 14:50   
Can confirm this kind of thing happens. It looks like creatures can treat targets on different z-levels as adjacent. An Olm-man civilisation is preventing me from mining vertically down to it in fort mode because about ten z-levels up (I know where it is due to the pile of forbidden food 60 levels down) I'll get "miner cancels dig: Interrupted by Olm-man blowgunner". Going to the combat log give the entry "The Miner bats the ({Nether-cap blowdart}) out of the air!" (indicating a successful parry against a ranged weapon) and the location of the combat event is the tile the miner was attempting to dig from, where of course there is no connection to anything except the surface, 50 levels up. Of the Olm-man, there is no sign, even on the units menu.
(0009175)
smjjames   
2010-06-27 15:51   
Any idea if the Olmman had a LoS to your miner? It sounds like it doesn't, but just being sure here.

The olmman is going to run out of darts sooner or later anyhow.
(0011661)
Evil One   
2010-08-09 08:40   
(edited on: 2010-08-09 08:51)
I think this bug is caused when the AI first spots a person, they seem to enter a queued command to attack (which means they charge towards an opponent and hit it), however the queued command doesn't consider moving up or down Z levels as distance and thus they will launch their first attack regardless of what Z level their target is on.

A simple adjacency or pathfinding check just before the creature attacks should solve this.

EDIT - this bug can be easily reproduced in the arena: create an elf and a bat man on opposite sides of the arena, possess the bat man and wait for the elf to start moving towards you and then fly straight up.