[战斗]======免疫buff添加类型 5 免疫控制不免疫禁疗
parent
a20c226704
commit
01e446fed3
|
|
@ -14,6 +14,13 @@ local immune3 = function(buff)
|
|||
return buff.type == BuffName.Shield and buff.shieldType == ShieldTypeName.AllReduce
|
||||
end
|
||||
|
||||
--免疫控制不免疫禁疗
|
||||
local immune5 = function(buff)
|
||||
return buff.type == BuffName.Control and buff.ctrlType and buff.ctrlType~=4
|
||||
end
|
||||
|
||||
|
||||
|
||||
--初始化Buff,通过传入一些自定义参数控制成长相关的数值
|
||||
function Immune:SetData(type,func)
|
||||
self.immuneType = type
|
||||
|
|
@ -39,10 +46,10 @@ function Immune:OnStart()
|
|||
if self.immune4 then
|
||||
self.target.buffFilter:Add(self.immune4)
|
||||
end
|
||||
elseif self.immuneType==5 then--免疫控制 不免疫禁疗
|
||||
self.target.buffFilter:Add(immune5)
|
||||
end
|
||||
if condition then
|
||||
-- body
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--间隔N帧触发,返回true时表示继续触发,返回false立刻触发OnEnd
|
||||
|
|
|
|||
Loading…
Reference in New Issue