if no illusions are found, this function will run every frame
illusionLib.nNextBehaviorTime seems to be set in the wrong place