I'm looking for a way to swap weapons if I run out of mana, taking the skinning mode example, i was wondering if the following would work?
Event: ManaWeaponChange
Trigger: UNIT_MANA
Delay: 0
Script:
if UnitMana("player") <= 40 then
if OOM then
SaveSet()
EquipSet()
OOM=1
end
elseif OOM then
LoadSet()
OOM=nil
end
|