From fb1642b6b9bb2c909363ce8999aa0480418adcd4 Mon Sep 17 00:00:00 2001 From: Road-block Date: Sun, 1 Oct 2017 19:28:03 +0300 Subject: [PATCH] loot: add fallback values for missing players --- api/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api.lua b/api/api.lua index 68846bd5..a2ad9c21 100644 --- a/api/api.lua +++ b/api/api.lua @@ -240,6 +240,9 @@ do -- create a scope so we don't have to worry about upvalue collisions end end end + -- fallback for GetMasterLootCandidate not updating immediately for leavers + unitinfo.lclass,unitinfo.class = _G.UNKNOWN, "UNKNOWN" + return unitinfo end end