Release 1.2.21

- Updated skill data to 2.5.0
- Added more mods to ring/amulet templates
- Added support for "Auras you Cast" modifiers
- Fixed un-evadable skills
- Other minor fixes
This commit is contained in:
Openarl
2016-12-03 03:32:50 +10:00
parent 8a26e99def
commit 9090febb93
20 changed files with 312 additions and 235 deletions

View File

@@ -225,7 +225,7 @@ function launch:DownloadPage(url, callback, cookies)
LaunchSubScript([[
local url, cookies = ...
ConPrintf("Downloading page at: %s", url)
local curl = require("lcurl")
local curl = require("lcurl.safe")
local page = ""
local easy = curl.easy()
easy:setopt_url(url)
@@ -236,11 +236,13 @@ function launch:DownloadPage(url, callback, cookies)
page = page..data
return true
end)
easy:perform()
local _, error = easy:perform()
local code = easy:getinfo(curl.INFO_RESPONSE_CODE)
easy:close()
local errMsg
if code ~= 200 then
if error then
errMsg = error:msg()
elseif code ~= 200 then
errMsg = "Response code: "..code
elseif #page == 0 then
errMsg = "No data returned"