Fixed an oversight in Wizard-Spell targeting code

Added an extra safety check to check if targets selected via inputs were actually in range. Previously someone could open a bunch of inputs and activate them from what ever range.
Update spell.dm
Merge pull request #2135 from ChuckTheSheep/patch-2

Fixed an oversight in Wizard-Spell targeting code