Yep that should work. Tho to make it less annoying when you're casting on mana fumes:
if UnitMana("player") <= 40 then
if OOM then
SaveSet()
EquipSet()
OOM=1
end
elseif OOM and UnitMana("player")>150 then
LoadSet()
OOM=nil
end
That will swap to a set when you go below or equal to 40 mana, and swap back when mana is over 150.
If you wanted to swap at 40% mana, change UnitMana("player") to UnitMana("player")*100/UnitManaMax("player")
|