[Lua] 纯文本查看 复制代码 if (enables["治疗他人"] or ni.vars.combat.cd) and not ni.unit.buff("player","影遁") and (GetNumRaidMembers()>0 or GetNumPartyMembers()>0) then
if enables["圣佑术"] then
if ni.spell.available("圣佑术") and UnitAffectingCombat("player") and not UnitIsDeadOrGhost("player") then
local lowest = ni.members.inrangebelow("player", 40, values["圣佑术"])[1]
if lowest and lowest:valid("圣佑术", false, true) and not lowest:debuffs("自律") then
return lowest:cast("圣佑术")
end
end
end
inrangebelow
Arguments:
unit guid|token
distance number
hp number
Returns: table
返回一个成员表,这些成员位于单位指定的距离内,并且低于传递的 HP 阈值。
[Lua] 纯文本查看 复制代码 local members_below = ni.members.inrangebelow("player", 10, 60); --Returns a table of all the members within 10 yards of the player that are below 60% health
api有很多东西看 |