View Issue Details

IDProjectCategoryView StatusLast Update
0000419Dwarf FortressCombat -- Generalpublic2011-03-09 17:24
ReporterMatt_S Assigned ToToady One  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version0.31.01 
Fixed in Version0.31.22 
Summary0000419: Can attack creatures in melee across several Z levels
DescriptionI 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.
TagsArena Mode, combat, Z axis

Relationships

has duplicate 0000464 resolvedToady One Dwarf killed 10z levels away 
has duplicate 0000693 resolvedToady One Multiple simultaneous bugs. 
has duplicate 0001165 resolvedToady One Shift A menu shows targets that are not anywhere within view, and are attackable. Save included. 
has duplicate 0003474 resolvedLogical2u Could attack through 40 z-levels 
has duplicate 0003652 resolveduser6 Phantom Blind Cave Ogre 
has duplicate 0004029 resolveduser11 Flying and attempting combat with a creature directly beneath you allows you to attack any creature in that tile any z-level. 
related to 0000362 confirmeduser6 Interrupted by forgotten beast -- Through 20 z-levels of solid rock with no possible path 
related to 0002267 acknowledgeduser6 Martial trances can be triggered by distant and invisible underground creatures 

Activities

user6

2010-04-08 02:50

  ~0001988

Apparently this can also cause teleportation http://www.bay12games.com/forum/index.php?topic=53464.0

smjjames

2010-04-11 10:01

reporter   ~0002824

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.

blazzano

2010-04-22 22:47

reporter   ~0004677

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.

Quil

2010-06-27 14:50

reporter   ~0009173

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.

smjjames

2010-06-27 15:51

reporter   ~0009175

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.

Evil One

2010-08-09 08:40

reporter   ~0011661

Last edited: 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.

Issue History

Date Modified Username Field Change
2010-04-04 14:17 Matt_S New Issue
2010-04-04 16:48 Qloos Tag Attached: Arena Mode
2010-04-04 16:48 Qloos Tag Attached: combat
2010-04-04 16:48 Qloos Tag Attached: Z axis
2010-04-05 09:04 user6 Relationship added parent of 0000464
2010-04-07 01:06 user6 Relationship added parent of 0000693
2010-04-07 01:07 user6 Sticky Issue No => Yes
2010-04-08 02:50 user6 Note Added: 0001988
2010-04-11 10:01 smjjames Note Added: 0002824
2010-04-14 15:57 user6 Relationship added parent of 0001165
2010-04-22 22:47 blazzano Note Added: 0004677
2010-05-05 13:28 user6 Relationship added has duplicate 0001769
2010-05-05 13:28 user6 Relationship deleted has duplicate 0001769
2010-06-27 14:50 Quil Note Added: 0009173
2010-06-27 15:51 smjjames Note Added: 0009175
2010-08-09 08:40 Evil One Note Added: 0011661
2010-08-09 08:41 Evil One Note Edited: 0011661
2010-08-09 08:43 Evil One Note Edited: 0011661
2010-08-09 08:51 Evil One Note Edited: 0011661
2010-10-26 18:49 Logical2u Relationship added has duplicate 0003474
2010-11-17 07:03 user6 Relationship added has duplicate 0003652
2010-11-17 10:09 user6 Relationship added related to 0000362
2011-02-19 15:31 user11 Relationship added has duplicate 0004029
2011-03-09 04:04 Toady One Status new => resolved
2011-03-09 04:04 Toady One Fixed in Version => 0.31.22
2011-03-09 04:04 Toady One Resolution open => fixed
2011-03-09 04:04 Toady One Assigned To => Toady One
2011-03-09 04:56 user11 Sticky Issue Yes => No
2011-03-13 17:43 user6 Relationship replaced has duplicate 0000464
2011-03-13 17:43 user6 Relationship replaced has duplicate 0000693
2011-03-13 17:44 user6 Relationship replaced has duplicate 0001165
2011-03-14 13:59 user6 Relationship added related to 0002267