9b385c79e3
- Updated NickTag to the latest version. - Added a welcome window on first run. - Added a new attribute: frags, which will show adds killed. - Added boss end which will end a combat when some requisites are done. - Fixed a issue when ending a combat did not close heal actor timer. - Fixed a green texture shown when an actor don't have a avatar. - Fixed a issue on reverse report were dead shown nothing. - Fixed bug were a instance segment didn't change while in combat. - Fixed problem when removing a combat table did not reduce absorbs amount. - Pet equilization at the end of a encountr has been disabled. - Equilization at the end of a encounter has been improved. - New API: _detalhes:GetEncounterEnd (mapid, bossindex) get table with boss end.
14 lines
654 B
Lua
14 lines
654 B
Lua
debugstack = debug.traceback
|
|
strmatch = string.match
|
|
|
|
loadfile("../LibStub.lua")()
|
|
|
|
local proxy = newproxy() -- non-string
|
|
|
|
assert(not pcall(LibStub.NewLibrary, LibStub, proxy, 1)) -- should error, proxy is not a string, it's userdata
|
|
local success, ret = pcall(LibStub.GetLibrary, proxy, true)
|
|
assert(not success or not ret) -- either error because proxy is not a string or because it's not actually registered.
|
|
|
|
assert(not pcall(LibStub.NewLibrary, LibStub, "Something", "No number in here")) -- should error, minor has no string in it.
|
|
|
|
assert(not LibStub:GetLibrary("Something", true)) -- shouldn't've created it from the above statement |