[b34] targeting bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

[b34] targeting bug

#1 Post by lukep »

It is still possible to manually aim to hit tiles that are obstructed by walls. One example:

Code: Select all

.....X
....m.
...#..
@.....
You cannot hit the monster ("m") by aiming at it, but you can by aiming at "X".
Last edited by lukep on Fri Nov 04, 2011 7:17 am, edited 1 time in total.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [b34] targeting bug

#2 Post by yufra »

Yes, this is an old bug and to be honest I don't know how you would suggest fixing it. I believe the problem is that targeting tries to aim from the middle of @ to the middle of m or X. @-to-m is thus blocked, but the line that goes from @-to-X does enter the tile containing m. If that is true, what would you propose?
<DarkGod> lets say it's intended

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: [b34] targeting bug

#3 Post by lukep »

Make targeting check if aiming several spaces diagonally different would change anything? I don't really know how targeting code works, so I can't add much here.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b34] targeting bug

#4 Post by tiger_eye »

Yup, this should already be fixed for b35. One of the conditional statements for "smart lines" introduced in b34 was totally whack (it worked half the time), and I was hoping b35 would be released before this particular issue was revealed :-P . Thanks for reporting it though, lukep, and I'll double-check the configuration you posted just to make sure.

Post Reply