Mount macro does not work before I open collection window

I have a macro to summon specific mounts when a modifier is held down or a random favourite if no modifier is held. It works fine, but for some reason I have to open the collection window once per session for the MountJournalSummonRandomFavoriteButton button to work. Any idea how this could be fixed?

#showtooltip
/click [nomod,nomounted]MountJournalSummonRandomFavoriteButton
/use [nomounted,mod:shift] Grand Expedition Yak;/use [nomounted,mod:ctrl] Sandstone Drake;
/dismount [mounted]
#showtooltip
/run if SecureCmdOptionParse("[nomod,nomounted]") then C_MountJournal.SummonByID(0) end
/use [nomounted,mod:shift] Grand Expedition Yak; [nomounted,mod:ctrl] Sandstone Drake;
/dismount [mounted]

That works perfectly! Thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.