本帖最后由 QQ_CAFE57 于 2024-5-2 12:29 PM 编辑
开启魔蜂前
开启魔蜂后
[Lua] 纯文本查看 复制代码 if not UnitIsDead('player') and not BeeUnitCastSpellName('player') then
---------------------------------------------------------------------局部变量
local JL = BeeRange('target')--目标距离
local PL = BeeUnitBuffList('player')--玩家BUFF
local TL = BeeUnitBuffList('target')--目标BUFF
local PNL = BeeUnitMana('player','%')--玩家能量
local PXL = BeeUnitHealth('player','%')--玩家血量
local TXL = BeeUnitHealth('target','%')--目标血量
local CW = BeeUnitHealth('pet')>0
local XX = BeeRune('鲜血符文')
local BS = BeeRune('冰霜符文')
local XE = BeeRune('邪恶符文')
local SW = BeeRune('死亡符文')
local XY = BeeTargetDeBuffTime('血之疫病')
local BY = BeeTargetDeBuffTime('冰霜疫病')
---------------------------------------------------------------------释放法术(死亡凋零)
if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
---------------------------------------------------------------------
if not IsMounted() then
---------------------------------------------------------------------
if not BeeUnitAffectingCombat() then
---------------------------------------------------------------------战斗外增益
if not UnitBuff('player','寒冬号角') and BeeSpellCD('寒冬号角')==0 then BeeRun('寒冬号角')end
if not UnitBuff('player','星骓') and GetItemCooldown('item:410010')==0 then BeeRun('item:410010') end
---------------------------------------------------------------------
elseif BeeUnitAffectingCombat() then CloseGossip()
---------------------------------------------------------------------战斗内增益
if BeeSpellCD('狂乱')==0 then BeeRun('狂乱') end
if BeeSpellCD('白骨之盾')==0 then BeeRun('白骨之盾') end
if BeeSpellCD('铜墙铁壁')==0 then BeeRun('铜墙铁壁') end
if BeeSpellCD('符文刃舞')==0 then BeeRun('符文刃舞') end
if BeeSpellCD('黑锋冰寒')==0 then BeeRun('黑锋冰寒') end
if BeeSpellCD('召唤石像鬼')==0 then BeeRun('召唤石像鬼') end
if BeeSpellCD('食尸鬼狂乱')==0 and pet then BeeRun('食尸鬼狂乱') end
---------------------------------------------------------------------战斗内减伤
if BeeStringFind('利刃屏障',PL) and (XX>0 or SW>0) then BeeRun('血液沸腾') end
if not BeeStringFind('鲜血灵气',PL) then BeeRun('鲜血灵气') end
if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('冰封之韧')==0 then
BeeRun('冰封之韧')end
if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('吸血鬼之血')==0 then
BeeRun('吸血鬼之血')end
if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('鲜血印记')==0 then
BeeRun('鲜血印记','target')end
---------------------------------------------------------------------
end
---------------------------------------------------------------------特色增益
if not UnitBuff('player','※雷之领域※增伤') and GetItemCooldown('item:410220')==0 then BeeRun('item:410220') end
if not UnitBuff('player','※风之领域※移速') and GetItemCooldown('item:410820')==0 then BeeRun('item:410820') end
if not UnitBuff('player','※空之领域※急速') and GetItemCooldown('item:410720')==0 then BeeRun('item:410720') end
if not UnitBuff('player','※水之领域※减伤') and GetItemCooldown('item:410320')==0 then BeeRun('item:410320') end
if not UnitBuff('player','※火之领域※智力') and GetItemCooldown('item:410620')==0 then BeeRun('item:410620') end
if not UnitBuff('player','※木之领域※敏捷') and GetItemCooldown('item:410520')==0 then BeeRun('item:410520') end
if not UnitBuff('player','※石之领域※力量') and GetItemCooldown('item:410420')==0 then BeeRun('item:410420') end
---------------------------------------------------------------------
end
---------------------------------------------------------------------目标选择
BeeRun('/targetenemy [noexists][noharm]')
if JL>9 then BeeRun('/targetenemy')end
---------------------------------------------------------------------输出循环
if BeeUnitHealth('target')>0 and UnitCanAttack('player','target')==1 and JL<31 then
BeeRun('/startattack')BeeRun('凛风冲击')
if JL<9 then
--if not BeeStringFind('虚弱对手',TL) then BeeRun('item:666067') end
--if (BS>0 or SW>0) and BY<1.5 then BeeRun('冰冷触摸')end
if (XE>0 or SW>0) and XY<1.5 then BeeRun('暗影打击')end
--if XY>=19 and XX>0 then BeeRun('传染')end
if ((BY>0 and XY>0 and BS>0 and XE>0) or (BY>10 and XY>10 and SW>1) or (((BS>0 or XE>0) and SW>0 and BY>5 and XY>5) and (XX>0 or BeeRuneCD('鲜血符文')<=5))) and BeeUnitHealth('player','%')<=75 then BeeRun('灵界打击')end
--if BY>0 and XY>0 and (XX>0 or SW>0) then BeeRun('鲜血打击')end
--if BY>0 and XY>0 and (XX>0 or SW>0) then BeeRun('血液沸腾')end
--if PNL>=99 and BeeIsRun('凋零缠绕') then BeeRun('凋零缠绕')end
--if PNL>=80 and BeeIsRun('符文打击') then BeeRun('符文打击')end
BeeRun('冰霜打击')BeeRun('天灾打击')BeeRun('鲜血打击')BeeRun('/cast !符文打击')
end
end
---------------------------------------------------------------------释放灵魂
elseif UnitIsDead('player') then
RepopMe()
---------------------------------------------------------------------虚弱复活
elseif UnitIsGhost('player') then
BeeRun('/click GhostFrame')BeeRun('/目标 灵魂医者')AcceptResurrect()AcceptXPLoss()
end
BeeRun('/console Sound_EnableSFX 1')BeeRun('/script UIErrorsFrame:Clear()')
都搞到个位数的帧数,脑壳疼
|