Attacking neutral hostility creatures with archery is a chaotic act
issueid=2816 04-18-2014 08:19 PM
Junior Member
Number of reported issues by heapsofgold: 8
Attacking neutral hostility creatures with archery is a chaotic act
The "really attack -foo-?" prompt appears while using archery, but not in melee against most neutral hostility creatures.

In 1.2.0 p21 while using archery against most (if not all) neutral hostility creatures ("-foo- does not care about you."), the game will prompt "Really attack the -foo-? [y/N]". This WILL be a chaotic act if Y is selected, as usual, however the game should not be pop up that prompt. Melee attacks will still work as usual, without the "Really attack" prompt, and if I melee attack, then I can use archery without penalty.
Issue Details
Issue Number 2816
Project ADOM (Ancient Domains Of Mystery)
Category All
Status Fixed
Priority 4
Affected Version ADOM 1.2.0 pre 21
Fixed Version ADOM r48
Milestone (none)
Users able to reproduce bug 2
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




04-18-2014 09:05 PM
Qui Qui is offline
Senior Member
Shooting past the monster works fine too.

04-19-2014 06:44 AM
The Creator
Just to make sure: You do not want to see the prompt at all? (despite suffering an alignment penalty if you attack the being)

04-19-2014 07:34 AM
Junior Member
Sorry, I might not have been clear. The problem is the prompt appearing at all. I can attack neutrally hostile creatures all day long in melee (not friendly creatures, just the indifferent ones), and normally only get the prompt when attacking a friendly creature. However, those same indifferent creatures will always trigger a "Really attack?" prompt with archery (as if they were friendly) unless I attack them in another manner first, to set them hostile (melee, spells, etc).

The "Really attack?" prompt should only come up when attacking friendlies, whether that's in melee or archery (and then you suffer the alignment drop). But the problem is it prompts when attacking anyone non-hostile with archery.

04-19-2014 07:53 AM
The Creator
Note for everyone: While working on a fix I changed the implementation for the same check when trying to kick a monster. According to my tests the new implementation should be as good as the old one but everyone beware ;-)

04-19-2014 09:59 AM
The Creator
Fixed. The fix was surprisingly complicated which can be taken as a proof to the surprisingly arcane, convoluted and cHaOtIc code structures in ADOM. Hopefully this fix will not create any unforeseen new problems.

04-27-2014 07:09 AM
Senior Member
Still not fixed in pre22.

Message when "t"argeting - Target: a goblin rockthrower (neutral). "t". Really attack the goblin rockthrower? [y/N].
Message when "l"ooking - This is a goblin rockthrower. He does not care about you.

Aligment penalty if answering "y" with missile attack.
No aligment penalty and no prompt with melee attack.

Expected behavior - No aligment penalty and no [y/N] prompt when using missile attack.

This bug makes archers life a hell. Savegame attached.

04-27-2014 10:06 AM
Senior Member
Still seeing this bug in p22.

04-27-2014 11:26 AM
The Creator
Why should attacking neutral monsters not invoke an alignment penalty? It being a hostile act? I'm confused about that part.

I'll reopen the bug.

04-27-2014 11:48 AM
Senior Member
Quote Originally Posted by adom-admin
Why should attacking neutral monsters not invoke an alignment penalty? It being a hostile act? I'm confused about that part.

I'll reopen the bug.
Hostile monsters attack you. This is now labeled as "hostile".
Not-yet-hostile monsters do not attack you _now_, but will backstab you in any turn. This is now labeled as "neutral".
Neutral monsters do not attack you unless you attack them first. This is now labeled as "friendly".
Friendly monsters help you with your combat. This is now labeled as "tame". (perhaps the only naturally occuring friendly one is the white unicorn for L+)

Not-yet-hostile monsters should be _hostile_, not neutral, that is the main idea of this RFE.

In one of the previous prereleases they were labeled as neutral for melee combat too, that went awful. Imagine "neutral" dangerous monster like berserker emperor, which you cant hit without aligment drop, but who can almost kill you in one turn, when he suddenly turn hostile on you.

04-27-2014 11:55 AM
Senior Member
Yeah, basically you can attack these monsters in melee for no penalty (and without being prompted), but cannot attack them with missiles. It's really, really annoying. Try playing an archer for 5 minutes if visualizing the bug is difficult - you'll notice it right away.

04-27-2014 12:07 PM
Senior Member
And dont make them true neutrals - there will be too many of them. When one third of all monsters is neutral and clogging your levels - this will be really annoying. One true neutral monster per two-three levels, like now - is ok.

04-27-2014 12:52 PM
Senior Member
Just to note - I really like how I can see when monsters are not-yet-hostile in pre 21...
That brown border around their healthbar is really helpful: I like seeing which monsters I can backstab!

Are we still going to have the ability to see which monsters are elligible for backstabbing?

04-27-2014 01:27 PM
Ancient Member
There shouldn't be too few "neutral" monsters, it feels more "realistic" if there is some. It was kind of perfect in p20. Also, how am I supposed to prove that I can steal if you only give me one victim every 2-3 dungeon levels.

04-28-2014 03:21 AM
Ancient Member
I think it may be stealth-related. Monsters who are hostile but haven't detected you yet induce an alignment hit if you shoot them, but not if you backstab.

04-28-2014 04:12 AM
Senior Member
Quote Originally Posted by JellySlayer
I think it may be stealth-related. Monsters who are hostile but haven't detected you yet induce an alignment hit if you shoot them, but not if you backstab.
No, you can 'c'hat with them, and then try and shoot. Makes no difference.

07-07-2014 07:30 PM
The Creator
Fixed once again. I guess... this part of the code is so convoluted :-P

+ Reply