[战斗]======被动357修改 御甲buff修改
parent
96c77fd033
commit
661ea27421
|
@ -8556,9 +8556,6 @@ local passivityList = {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not buff.skill then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if type==BuffName.DOT then
|
if type==BuffName.DOT then
|
||||||
if buff.damageType~=type2 then
|
if buff.damageType~=type2 then
|
||||||
return
|
return
|
||||||
|
|
|
@ -5,10 +5,7 @@ function Blood:SetData(...)
|
||||||
|
|
||||||
-- 刷新排序等级
|
-- 刷新排序等级
|
||||||
self.bloodValue=...
|
self.bloodValue=...
|
||||||
local passiveChange=function(addValue)
|
|
||||||
self.bloodValue=self.bloodValue+addValue
|
|
||||||
end
|
|
||||||
BattleLogic.Event:DispatchEvent(BattleEventName.BloodValuePassiveChange,passiveChange,self.target,self.caster,self.bloodValue)
|
|
||||||
self.sort = 4
|
self.sort = 4
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -27,6 +24,10 @@ end
|
||||||
--初始化后调用一次
|
--初始化后调用一次
|
||||||
function Blood:OnStart()
|
function Blood:OnStart()
|
||||||
self.target.bloodShield = self
|
self.target.bloodShield = self
|
||||||
|
local passiveChange=function(addValue)
|
||||||
|
self.bloodValue=self.bloodValue+addValue
|
||||||
|
end
|
||||||
|
BattleLogic.Event:DispatchEvent(BattleEventName.BloodValuePassiveChange,passiveChange,self.target,self.caster,self.bloodValue)
|
||||||
self.target.Event:DispatchEvent(BattleEventName.BloodValueChange,self.bloodValue/self.target:GetRoleData(RoleDataName.MaxHp),1,self.bloodValue)
|
self.target.Event:DispatchEvent(BattleEventName.BloodValueChange,self.bloodValue/self.target:GetRoleData(RoleDataName.MaxHp),1,self.bloodValue)
|
||||||
end
|
end
|
||||||
function Blood:GetCurValue()
|
function Blood:GetCurValue()
|
||||||
|
|
Loading…
Reference in New Issue