MCPcopy Create free account
hub / github.com/NetHack/NetHack / spell_aim_step

Function spell_aim_step

src/spell.c:1606–1615  ·  view source on GitHub ↗

ARGSUSED*/

Source from the content-addressed store, hash-verified

1604
1605/*ARGSUSED*/
1606staticfn boolean
1607spell_aim_step(genericptr_t arg UNUSED, coordxy x, coordxy y)
1608{
1609 if (!isok(x,y))
1610 return FALSE;
1611 if (!ZAP_POS(levl[x][y].typ)
1612 && !(IS_DOOR(levl[x][y].typ) && (levl[x][y].doormask & D_ISOPEN)))
1613 return FALSE;
1614 return TRUE;
1615}
1616
1617/* not quite the same as throwspell limits, but close enough */
1618staticfn boolean

Callers

nothing calls this directly

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected