View Single Post
Unread 12-13-05, 03:01 PM   #8
Gello
A Scalebane Royal Guard
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 442
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")
Gello is online now   Reply With Quote