[战斗]======免疫buff添加类型 5 免疫控制不免疫禁疗

dev_chengFeng
wangzhenxing 2021-09-17 16:55:49 +08:00
parent a20c226704
commit 01e446fed3
1 changed files with 11 additions and 4 deletions

View File

@ -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