第一个宏: 如果满足公共cd到达,能量低于某个阀值,就自动变身换能量,否则就撕碎 #showtooltip
/run if pwx then local f="猎豹形态";f=GetSpellCooldown(f)>0 or UnitMana('player')>pws or not IsUsableSpell(f) or CancelPlayerBuff(f) end
/cast [form] 撕碎
/stopmacro [form]
/cast 猎豹形态
第二个宏: 设置是否开启自动变身(开/关),并设置能量阀值,这里设的是15能量
/run local c=DEFAULT_CHAT_FRAME if pwx then pwx=false c:AddMessage("Powershift disabled",1,1,1) else pwx=true pws=14 c:AddMessage("Powershift enabled, 15 energy