【战斗】============被动313修改
parent
e25750d948
commit
7a5d44a8f2
|
@ -6844,12 +6844,13 @@ local passivityList = {
|
|||
end
|
||||
local len=BattleUtil.LengthOfTable(passTable)
|
||||
local addIds={}
|
||||
if BattleUtil.LengthOfTable(addIds)>= len then
|
||||
return
|
||||
end
|
||||
|
||||
-- 释放技能后
|
||||
local onRoleBeDamaged = function(caster, damage)
|
||||
local ft = role:GetRoleData(RoleDataName.Hp)/role:GetRoleData(RoleDataName.MaxHp)
|
||||
if BattleUtil.LengthOfTable(addIds)>= len then
|
||||
return
|
||||
end
|
||||
for key, value in pairs(passTable) do
|
||||
if ft<value[2] and not BattleUtil.ChecklistIsContainValue(addIds,value[1]) then
|
||||
role:AddPassiveById(value[1])
|
||||
|
|
Loading…
Reference in New Issue