Is there a function to check if I am sitting on top of the water?
Full story:
I normally just use the Random mount function, but due to Wonderous Wavewhisker not being recognized as a swimming mount it will not be summoned while swimming.
This would be really handy for normal flying zones so I can be swimming and fly straight away.
Due to a bug it will not work until you open the journal at least once.
Next I āupgradedā it a little bit to avoid the bug:
#showtooltip Wonderous Wavewhisker
/run local id; if IsSubmerged() then id = 1692 else id = 0 end; C_MountJournal.SummonByID(id)
I noticed that it didnāt work if floating IE sitting on top of the water. It would also summon the Wonderous Wavewhisker, which is bad for dragon flying zones where you want to swap mounts when out of the water.
So I created this macro to check for breathing timer bar (Not as good as random summon still because even if you have the breathing timer but you are close to the top it will still summon your dragon):
#showtooltip Wonderous Wavewhisker
/run local id; if GetMirrorTimerInfo(2)==āBREATHā and IsSubmerged() then id = 1692 else id = 0 end; C_MountJournal.SummonByID(id)
Which works UNLESS you have an underwater breathing buff. Which I guess is probably rarer but will not work in zones where you might have breathing
So I was wondering if anyone knew another way to check for IsFloating() etc? Or even a better way than what I am doing now (Iām not very good at this stuff TBH but want to improve)
There is probably addons out there for it but I this old fossil kind of feels like I already have way to many and prefer to make macros where I can (though feel free to suggest them)
Thatās my draft version I actually corrected it earlier silly me uploaded from my running note pad file
Thanks for the suggestions. Iāve seen that pretty much everywhere under the mount addon recommendation, I probably should give it a try
The other one I was going to try if I couldnāt get a fix is called Worgan Mount or something like that BUT I kind of have a work around.
Basically the breath conditional Iām pretty happy with, not the best, not the worse but I set one swimming mount to favorites (I took them off for testing).
So now when Iām on my Warlock and have underwater breathing it will just use the normal swimming mount instead of my Wavewhisker but at least itās doing what I want 99% of the time.
I was considering just making the mod conditional though but I was thinking of using that for my tmog mount as its taking up a slot on my bars
I gave this a whirl and it only used Wavewhisker in Valdrakken, did you mean like this (Iām not in game anymore so canāt test it):
I normally use the stopmacro to prevent it dismounting and remounting if they are different actions (Not 100% sure if run/use will do it though, itās been a minute).
Side note: I saw the ``` thatās a awesome way to do a block quote! Iāve learnt something new