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