- UID
- 50220
- 阅读权限
- 10
- 回帖
- 17
- 喵币
- 0
- 有爱
- 21
- DKP
- 3
- 金币
- 7824
- 在线时间
- 14 小时
- 注册时间
- 2025-9-13
- 最后登录
- 2026-2-3
声望: 18   虚弱: 0

Lv.1(追随者)
|
发表于 2025-9-14 01:38:28
|
显示全部楼层
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
-- List of relevant keywords for mobile restrictions
local movementRestrictKeywords = {
"Frozen", "Frozen", "Ice Ring", "Frozen Trap", "Ice Arrow",
"定身", "束缚", "禁锢", "缠绕", "根须",
"减速", "迟缓", "瘫痪", "昏迷", "击退",
"Pull," "Stick," "Imprison," "Lock."
}
-- 1. Automatically replenish buffs
if (UnitExists("target") == 1 or IsMounted("player") == 1) and not BeeStringFind("惩戒光环", buff) then
BeeRun("/cast 惩戒光环")
end
if not BeeStringFind("强效王者祝福", buff) then
BeeRun("/cast 强效王者祝福", "player")
end
if BeePlayerBuffTime("命令圣印") < 0 then
BeeRun("/cast 命令圣印", "player")
end
-- 2. Free Hand (Movement Restriction Detection)
if BeeSpellCoolDown("自由之手") == 0 and BeeIsRun("/cast 自由之手") then
local hasMovementRestrict = false
for _, keyword in ipairs(movementRestrictKeywords) do
if BeeStringFind(keyword, buff) then
hasMovementRestrict = true
station wagon
end
end
if hasMovementRestrict and not BeeStringFind("圣手", buff) then
BeeRun("/cast Free Hand", "player")
end
end
-- 3. Combat logic
if UnitExists("target") and not UnitIsDeadOrGhost("target") then
-- 3.1 Burst Skills
if BeeSpellCoolDown("复仇之怒") == 0 and BeeIsRun("/cast 复仇之怒") then
BeeRun("/cast 复仇之怒")
end
-- 3.2 Defensive skills
if BeeSpellCoolDown("制裁之锤") == 0 and IsSpellInRange("制裁之锤", "target") == 1
and not BeeStringFind("忏悔", Tbl) and not BeeStringFind("昏迷", Tbl)
and BeeUnitHealth("player", "%") < 50 then
BeeRun("/cast 制裁之锤")
end
-- 3.3 New: Exorcism (priority for undead/demons)
local targetType = UnitCreatureType("target")
if BeeSpellCoolDown("驱邪术") == 0 and (targetType == "亡灵" or targetType == "恶魔")
and IsSpellInRange("驱邪术", "target") == 1 then
BeeRun("/cast 驱邪术")
end
-- 3.4 New: Divine Wrath (AOE Crowd Control)
if BeeSpellCoolDown("神圣愤怒") == 0 and (targetType == "亡灵" or targetType == "恶魔")
and BeeUnitAffectingCombat("player") then
BeeRun("/cast 神圣愤怒")
end
-- 3.5 Hammer of Wrath (Slashing)
local targetHealthPercent = UnitHealth("target") / UnitHealthMax("target") * 100
if targetHealthPercent < 20 and BeeSpellCoolDown("愤怒之锤") == 0 then
BeeRun("/cast 愤怒之锤")
end
-- 3.6 Regular Output Loop
if BeeSpellCoolDown("圣光审判") == 0 and not BeeStringFind("智慧审判", buff) then
BeeRun("/cast 圣光审判")
elseif BeeUnitMana("player", "%") <= 20 and BeeSpellCoolDown("智慧审判") == 0 then
BeeRun("/cast 智慧审判")
end
if BeeSpellCoolDown("十字军打击") == 0 then
BeeRun("/cast 十字军打击")
end
if BeeSpellCoolDown("神圣风暴") == 0 and IsSpellInRange("十字军打击", "target") == 1 then
BeeRun("/cast 神圣风暴")
end
if BeeSpellCoolDown("奉献") == 0 and BeeSpellCD("圣光审判") > 0
and BeeSpellCD("十字军打击") > 0 and BeeSpellCD("神圣风暴") > 0 then
BeeRun("/cast 奉献")
end
end
有驱邪和神圣愤怒 但是好像只针对亡灵怪才会释放 |
|