本帖最后由 懒动行不行 于 2023-10-9 04:50 PM 编辑
[Lua] 纯文本查看 复制代码 F=CreateFrame("Frame")
F:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
F:SetScript("OnEvent",function(self,event,_,subevent,_,_,_,_,_,_,_,_,_,_,spellname)
local a=a or 0
local b=b or 0
if subevent=="SPELL_CAST_SUCCESS" and spellname=="噬灵疫病”then
a=1
end
if subevent=="SPELL_AURA_REMOVED" and spellname=="噬灵疫病”then
b=1
a=0
end
if BeeUnitBuff("噬灵疫病","target",0,2)<0 and (a==0 or b==1) then
BeeRun("噬灵疫病")
end
end)
大概想了个思路,因为没办法上游戏,需要楼主自己验证
当检测到目标身上的噬灵疫病没有后,那么根据2条来判断是否施放噬灵疫病:
1、已经检测到噬灵疫病从任意生物身上消失的战斗事件记录,或
2、没有检测到对任意生物施放噬灵疫病成功的战斗事件记录
思路大致是这个思路,可能有我没想到的问题,楼主慢慢摸索吧
.gif)
|