CommonFun

CommonFun.CalcBodyParam

Dataset · 20251127_update

Formula Source

function CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local bodyInc = 0
  local bodyRed = 0
  local srcShape = srcUser.shape
  local targetShape = targetUser.shape
  bodyInc = srcUser:GetProperty(CommonFun.ShapeProps[targetShape][1])
  bodyRed = targetUser:GetProperty(CommonFun.ShapeProps[srcShape][2])
  if srcUser:HasBuffID(21830150) then
    bodyRed = 0
  end
  local A = 1 + bodyInc - bodyRed
  if A <= 0.15 then
    A = 0.15
  end
  return A
end
No formula links

Version History

Loading dependencies...
Loading usage...