1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-28 00:12:23 +01:00

Targeted soul coins need a clear path.

Cannot target monsters on the other side of a wall.
This commit is contained in:
NeroOneTrueKing 2021-09-30 17:41:29 -05:00
parent dd894b41e6
commit 4c308d9852

View file

@ -5608,8 +5608,8 @@ struct obj *obj;
if(getpos(&cc, TRUE, "the target") < 0) return 0;
x = cc.x;
y = cc.y;
if(distmin(u.ux, u.uy, x, y) > BOLT_LIM){
pline("Too far!");
if(distmin(u.ux, u.uy, x, y) > BOLT_LIM || !clear_path(u.ux, u.uy, x, y)){
pline("It can't reach there!");
return 0;
}