A skilled/expert caster of fireball/cone of cold was not able to target
a location with a monster seen only by infravision/ESP. Since you can
focus on the monster there, targetting shouldn't fail in this case.
Attempting to lock onto a monster inside stone still won't work.
bad capitalization of msg when charging for something that catches light
missing opthelp for use_inverse
Never say "It moves only reluctantly"
+expert fireball/cone of cold could not target a monster seen only with
+ infravision or ESP
Platform- and/or Interface-Specific Fixes
throwspell()
{
coord cc;
+ struct monst *mtmp;
if (u.uinwater) {
pline("You're joking! In this weather?"); return 0;
u.dx = 0;
u.dy = 0;
return 1;
- } else if (!cansee(cc.x, cc.y) || IS_STWALL(levl[cc.x][cc.y].typ)) {
+ } else if ((!cansee(cc.x, cc.y) &&
+ (!(mtmp = m_at(cc.x, cc.y)) || !canspotmon(mtmp))) ||
+ IS_STWALL(levl[cc.x][cc.y].typ)) {
Your("mind fails to lock onto that location!");
return 0;
- } else {
- u.dx=cc.x;
- u.dy=cc.y;
- return 1;
}
+
+ u.dx = cc.x;
+ u.dy = cc.y;
+ return 1;
}
void