【无尽副本】偶现卡死尝试修改

dev_chengFeng
ZhangBiao 2021-01-04 15:13:21 +08:00
parent dfafed683d
commit 74cec8e7b4
1 changed files with 18 additions and 16 deletions

View File

@ -599,6 +599,7 @@ function this.RefreshFormationProListVal(proId, changeType, _val)
-- 获取当前值 -- 获取当前值
local value = this.formationList[i].allProVal[_proType] local value = this.formationList[i].allProVal[_proType]
--- 加血需要特殊处理 --- 加血需要特殊处理
if value then
if _proType == 2 then if _proType == 2 then
-- 判断人物是否死亡,死亡不再加血 -- 判断人物是否死亡,死亡不再加血
if value > 0 then if value > 0 then
@ -618,6 +619,7 @@ function this.RefreshFormationProListVal(proId, changeType, _val)
else else
value = value + _val * changeType value = value + _val * changeType
end end
end
-- 人物属性不能小于0 -- 人物属性不能小于0
value = value < 0 and 0 or value value = value < 0 and 0 or value
this.formationList[i].allProVal[_proType] = value this.formationList[i].allProVal[_proType] = value