End the turn without the script running, then activate the script afterwards.