目前测试在SuperWow支持下效果更好,理论上没有SuperWow也可以
宏1:只要读条就打断,适用那些所有读条都打断的boss(比如老克)”脚踢”可以换成本职业的打断技能
/script SpellName = "脚踢"
/script if UnitExists("target") and pfUI and pfUI.env then local Target = UnitName("target") if CheckSuperWow() then Target = select(2, UnitExists("target")) end if pfUI.api.libcast.db[Target] and pfUI.api.libcast.db[Target].cast then CastSpellByName(SpellName) end end
宏2:只打断特定技能读条,适用boss有多个技能,只打断其中某个技能场景,”寒冰箭”是需要打断的读条技能,”脚踢”可以换成本职业的打断技能
/script SpellName = "脚踢" CastName = "寒冰箭"
/script if UnitExists("target") and pfUI and pfUI.env then local Target = UnitName("target") if CheckSuperWow() then Target = select(2, UnitExists("target")) end if pfUI.api.libcast.db[Target] and pfUI.api.libcast.db[Target].cast == CastName then CastSpellByName(SpellName) end end