The printed timing window is “After you roll dice for a unit ability.”
Agnlan Oln is the Jol-nar commander. Resolve the ability only in that window, and only if any other printed conditions are met. The commander must be unlocked.
Prophecy of Kings component; use the cited printing.