This spell is used by the Medic. It costs 75 energy by default. The targeted unit will gain the "Blind" status, which reduces the unit's vision radius to a minimum. Blind also removes the "Detector" ability of the unit. This effect can only be canceled with the Medic's Restoration ability.
Computer Use For the computer to cast optical flare on an enemy unit, the unit must have at least 81 hit points, including protoss shield points. Attacking the Medic or running a Melee AI Script for the computer player controlling the Medic will cause the computer to use the spell more aggressively.
UndeadStar -- https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.