【战斗】======被动401修改

dev_chengFeng
wangzhenxing 2021-12-06 09:40:51 +08:00
parent 011c8d7f5d
commit e9f9010c12
4 changed files with 10 additions and 16 deletions

View File

@ -10106,10 +10106,10 @@ local passivityList = {
local v2=args[4] local v2=args[4]
local t1=args[5] local t1=args[5]
local t2=args[6] local t2=args[6]
local OnBuffStart = function(buff1) local OnBuffStart = function(buff)
-- BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime, function () -- BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime, function ()
local buff={}
buff=buff1 -- buff=buff1
if buff.skill==nil or buff.skill.type~=BattleSkillType.Special then if buff.skill==nil or buff.skill.type~=BattleSkillType.Special then
return return
end end
@ -10127,16 +10127,11 @@ local passivityList = {
local buffTarget={} local buffTarget={}
buffTarget=buff.target buffTarget=buff.target
if add>0 then if add>0 then
-- local buff = Buff.Create(caster, BuffName.DOT, i1, 1, dot, floor(damage))
-- buff.skill=skill
-- buff.isRealDamage = true
local newBuff={}
newBuff=buff
newBuff.skill=nil
newBuff.caster=role
for i = 1, add do for i = 1, add do
local newBuff = Buff.Create(buff.caster, BuffName.DOT, buff.duration, 1,1,buff.damagePro)
buffTarget:AddBuff(newBuff) newBuff.skill=nil
newBuff.isRealDamage=true
buff.target:AddBuff(newBuff)
end end
end end
--end) --end)

View File

@ -16,7 +16,6 @@ function DOT:SetData(...)
-- self.cover = false -- self.cover = false
-- self.layer = nil -- self.layer = nil
--end --end
-- 刷新排序等级 -- 刷新排序等级
self.sort = 2 self.sort = 2
-- if self.damageType == 3 then -- 流血buff在行动之后刷新 -- if self.damageType == 3 then -- 流血buff在行动之后刷新

View File

@ -216,7 +216,7 @@ function BuffCtrl:AddBuffIcon(buff, icon)
end end
--持续伤害类型,伤害系数 --持续伤害类型,伤害系数
elseif buffType==BuffName.DOT then elseif buffType==BuffName.DOT then
if self.BuffIconList[key].buffDamageType==currBuff.damageType and self.BuffIconList[key].buffDamageFactor==currBuff.damageFactor then if self.BuffIconList[key].buffDamageType==currBuff.damageType and self.BuffIconList[key].buffDamageFactor==currBuff.damagePro then
self.BuffIconList[key]:SetCount(self.BuffIconList[key].count+1) self.BuffIconList[key]:SetCount(self.BuffIconList[key].count+1)
return return
end end
@ -291,7 +291,7 @@ function BuffCtrl:RemoveBuffIcon(buff)
end end
--持续伤害类型,伤害系数 --持续伤害类型,伤害系数
elseif buffType == BuffName.DOT then elseif buffType == BuffName.DOT then
if self.BuffIconList[key].buffDamageType==buff.damageType and self.BuffIconList[key].buffDamageFactor==buff.damageFactor then if self.BuffIconList[key].buffDamageType==buff.damageType and self.BuffIconList[key].buffDamageFactor==buff.damagePro then
if floor==1 then if floor==1 then
self.BuffIconList[key]:Dispose() self.BuffIconList[key]:Dispose()
self.BuffIconList[key] = nil self.BuffIconList[key] = nil

View File

@ -11,7 +11,7 @@ function BuffView.New(go, buff, icon)
instance.buffValue = buff.Value instance.buffValue = buff.Value
instance.buffCt = buff.changeType instance.buffCt = buff.changeType
instance.buffDamageType = buff.damageType instance.buffDamageType = buff.damageType
instance.buffDamageFactor = buff.damageFactor instance.buffDamageFactor = buff.damagePro
instance.buffCtrlType = buff.ctrlType instance.buffCtrlType = buff.ctrlType
instance.healValue = buff.healValue instance.healValue = buff.healValue
instance.immuneType = buff.immuneType instance.immuneType = buff.immuneType