关于戒律牧套盾的问题求指点
怎样在团队有盾不顶啊,法伤没其他MS高德情况下,就卡技能,如下:local Td = BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<=94 and BeeUnitBuff("真言术:盾",unit)<=0 and BeeUnitBuff("虚弱灵魂",unit)<=0 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if Td and BeeIsRun("真言术:盾",Td) and BeeUnitBuff("真言术:盾",unit)<=0 then
BeeRun("真言术:盾",Td)
return
end
local Hf = BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<=85 and ((BeeUnitBuff("真言术:盾",unit,2,1)>0 or BeeUnitBuff("虚弱灵魂",unit)>0) and BeeUnitBuff("恢复",unit)<=0) and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if Hf and BeeIsRun("恢复",Hf)and not BeeStringFind("争分夺秒",buff) and BeeUnitBuff("恢复",unit)<=0 then BeeRun("恢复",Hf) end
得空来测试下新玩具的版本 来看看{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:} 加判断,如果Unit没盾,才释放
BeeUnitBuff("真言术:盾",unit)<=0
修改成下面
BeeUnitBuff("真言术:盾",unit,2,1)<=0
BeeUnitBuff
獲得指定目標buff剩餘時間
语法
time = BeeUnitBuff(Spell,Unit,Nameid,BuffType);
参数
Spell
字符串 - Buff 名稱
Unit
字符串 - UnitId,指定要获取数据的目标
Nameid
数值 - 指定BUFF是誰施放的
0自己,不输入默认为0
1不是自己
2任何人
BuffType
数值 - 指定BUFF的類型
0所有的Buff
1有益的Buff
2有害的Buff
默認值是 0
所有BeeUnitBuff("真言术:盾",unit)<=0位置都改吗 还是只改第一个 哇 大佬好厉害
{:5_256:} BeeUnitBuff("真言术:盾",unit)<=0 不加数字,默认为自己释放的盾时间小于等于0时施放,所以要加判定,任何人施放的盾时间小于等于0才施放。改为BeeUnitBuff("真言术:盾",unit,2,1)<=0
Nameid
数值 - 指定BUFF是誰施放的
0自己,不输入默认为0
1不是自己
2任何人
BuffType
数值 - 指定BUFF的類型
0所有的Buff
1有益的Buff
2有害的Buff
页:
[1]