When I realized how busy Gello was (judging by the date of his last post) I took it upon myself to dig thru his code and find the answer my own lazy self.
Here it is: Switching the weapon that you use to gain mana from a judgement of wisdom out when you hit 100% mana (Useful for mana classes without wands):
~Create a set with your wisdom weapon and a set with your regular weapon first.
Name: Whatever you want
Trigger: UNIT_MANA
Delay: 0.5
Code:
local mana = UnitMana("player") / UnitManaMax("player")
if mana == 1 and IsSetEquipped("insertnameofwisdomsethere") and not IR_MANAUP then
EquipSet()
IR_MANAUP = 1
elseif mana ~= 1 then
IR_MANAUP = nil
end
--[[Switches back to (nameofusualweapon) after a successful mana regen session with (nameofwisdomweapon).]]