Use a dummy spell based on autocast-skill like fairy fire or the like with no effect, and a trigger that creates a dummy unit with the real spell, let is cast that on the target of the fake spell and destroy the dummy unit afterwards. Voilà
(make sure fake and true spell have the same allowed targets though, and certain of them wont work probably depending on what causes the autocast (eg healing only if a nearby target is damaged).