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:
parent
dd894b41e6
commit
4c308d9852
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue