Unleash Elements: Imbued Weapon swap!

Hello, I just recently began playing my shaman again and wanted to play it restoration.
My build is using Unleashed Fury, so I wanted to make a macro which would Switch from my Earthliving Weapon to Frostbrand Weapon then use Unleash Weapon.
--------------------
Something like:
/cast Frostbrand Weapon
/cast [target] Unleash Weapon
--------------------
However like this the macro will keep casting Frostbrand, so maybe something that makes it stop casting Frostbrand if I already have my weapon imbued.

Thanks to anyone taking the time reading this and helping out //Orkanen

Hello, I just recently began playing my shaman again and wanted to play it restoration.
My build is using Unleashed Fury, so I wanted to make a macro which would Switch from my Earthliving Weapon to Frostbrand Weapon then use Unleash Weapon.
--------------------
Something like:
/cast Frostbrand Weapon
/cast [target] Unleash Weapon
--------------------
However like this the macro will keep casting Frostbrand, so maybe something that makes it stop casting Frostbrand if I already have my weapon imbued.

Thanks to anyone taking the time reading this and helping out //Orkanen

The game can't a decision for you. As you try to: "Game does my weapon has Frost-brand weapon?" Yes, do this, No do that. However you can make a cast-sequence.

If you are spamming another button than this one for example healing wave. Try spamming this button while casting healing wave. If the other ability triggers the global cooldown it will first cast the second spell which is frost brand weapon. After that it will cast unleash.
elements.

Its hard to understand but you have to try and feel it how this way still works. And i wonder for how long it will be working like this

This will just swap imbues without starting a castesequence. You will not be able to add the unleash to this tho. The advantage is you wont get stuck in the castsequence if you get stunned or w/e. keep unleash on its own key.

Edit: Upon further investigation this may not work because weapon imbues may not be usable conditions for a macro to check against. In that case you would need to actually swap your weapon that has the appropriate imbue on it. If you need a hand writing such a macro just pm me.

The macro wiki is kind of scary to look at but all the info is there and i would urge anyone unfamiliar with macros to at least skim over it. Its pretty helpful to reference.