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

dev_chengFeng
wangzhenxing 2021-04-26 10:00:11 +08:00
parent e25750d948
commit 7a5d44a8f2
1 changed files with 4 additions and 3 deletions

View File

@ -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])