32475597 发表于 2022-2-13 14:16:54

求助bee 神牧守护之魂不释放

local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
--团队框体
grouptype=""
if GetNumRaidMembers()>0
then
    grouptype="raid"
else
    grouptype="party"
end
--刷血部分
if BeeUnitCastSpellName("player")=="快速治疗" or
BeeUnitCastSpellName("player")=="联接治疗" or
BeeUnitCastSpellName("player")=="神圣赞美诗" or
BeeUnitCastSpellName("player")=="希望圣歌" or
BeeUnitCastSpellName("player")=="恢复" or
BeeUnitCastSpellName("player")=="真言术:盾" or
BeeUnitCastSpellName("player")=="愈合祷言" or
BeeUnitCastSpellName("player")=="守护之魂" or
BeeUnitCastSpellName("player")=="强效治疗术" then return;end
--愈合祷言
local YHZY = BeeGroupMinScript('BeeRange(unit)<=40 and BeeIsRun("愈合祷言",unit) and BeeUnitHealth(unit,"%")<100 and BeeUnitBuff("愈合祷言",unit)<1 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if YHZY and BeeIsRun("愈合祷言",YHZY)
then
    BeeRun("愈合祷言",YHZY);return;end
--守护之魂
local SHZH = BeeGroupMinScript('BeeRange(unit)<=30 and BeeIsRun("守护之魂",unit) and BeeUnitHealth(unit,"%")<25and BeeUnitBuff("守护之魂",unit)<1 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if HF and BeeIsRun("守护之魂",SHZH)
then
    BeeRun("守护之魂",SHZH);return;end

求各位大佬看看是语法用错还是什么,其他的都可以正常运行 守护之魂焦点血量达到25了还是没有自动释放

32475597 发表于 2022-2-13 14:33:53

local SHZH = BeeGroupMinScript('BeeRange(unit)<=40 and BeeIsRun("守护之魂",unit) and BeeUnitHealth(unit,"%")<=25 and BeeUnitHealth(unit,"%")>=25 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if SHZH and BeeIsRun("守护之魂",SHZH) then BeeRun("守护之魂",SHZH);BeeUnitCastSpellDelay("守护之魂",0.8);
elseif SHZH then BeeStopCasting() return; end


这个命令也没办法实现 25血量自动释放求大佬解惑

feixia5693 发表于 2022-2-13 19:31:01

实在看不下去,你这个 if BeeUnitCastSpellName("player")=="快速治疗" or
BeeUnitCastSpellName("player")=="联接治疗" or
BeeUnitCastSpellName("player")=="神圣赞美诗" or
BeeUnitCastSpellName("player")=="希望圣歌" or
BeeUnitCastSpellName("player")=="恢复" or
BeeUnitCastSpellName("player")=="真言术:盾" or
BeeUnitCastSpellName("player")=="愈合祷言" or
BeeUnitCastSpellName("player")=="守护之魂" or
BeeUnitCastSpellName("player")=="强效治疗术" then return               何必这么麻烦这种直接一个 if BeeUnitCastSpellTime(Unit)>0 then return就可以了       然后你这个守护之魂和愈合祷言,是要判断CD的,而且一般是给T上的,你直接做个给焦点的判断不好吗

32475597 发表于 2022-2-13 21:13:19

feixia5693 发表于 2022-2-13 07:31 PM
实在看不下去,你这个 if BeeUnitCastSpellName("player")=="快速治疗" or
BeeUnitCastSpellName("player" ...

初学 哈哈哈 不太会整合 我试试 有没有类似的间接下 感谢大佬
页: [1]
查看完整版本: 求助bee 神牧守护之魂不释放