Formula

CommonFun.calcKillLine

function CommonFun.calcKillLine(srcUser, targetUser)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Hp = targetUser:GetProperty("Hp")
  local MaxHp = targetUser:GetProperty("MaxHp")
  local Num = math.min(targetUser:GetBuffLayer(137000_BOTTLED_GHOST_FRUSTRATED_:MAX_STACK_15), 5)
  local KillLine = 10 + 3 * Num
  local isKill = 0
  if Hp <= MaxHp * (0.1 + 0.03 * Num) then
    isKill = 1
  end
  return KillLine, isKill
end