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.