Fix #H4411: Targeting detected monster through wall with fireball
commit3eb919d5ab009c5d81e63dd0091cef3c6520febf
authorPasi Kallinen <paxed@alt.org>
Mon, 20 Jun 2016 06:11:52 +0000 (20 09:11 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 20 Jun 2016 06:11:56 +0000 (20 09:11 +0300)
tree72e454ea99bea0101c65ae9d42651cf6623e1a67
parent1cad5efe1715cb98a8a51308f9d44932f2d0fd6b
Fix #H4411: Targeting detected monster through wall with fireball

Fireball and cone of cold could target detected monsters
through a wall when cast at skilled or higher.  This allowed
eg. targeting the Wiz from outside his tower.

Use walk_path to determine the actual location where the
spell will hit, so trying to cast through a wall will
make the explosion happen at the nearest empty space.
src/spell.c