Fixed incorrect target generation affecting periodic spell triggers.