From 6480fbb303bfdf0026e45d0838660973b165665c Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:39:48 -0700 Subject: [PATCH] Possible fix for table.sort having nil values? --- core/parser.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/parser.lua b/core/parser.lua index 3b0dc40c..03badfb1 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -1759,6 +1759,13 @@ -- https://github.com/TrinityCore/TrinityCore/blob/d81a9e5bc3b3e13b47332b3e7817bd0a0b228cbc/src/server/game/Spells/Auras/SpellAuraEffects.h#L313-L367 -- absorb order from trinitycore local function AbsorbAuraOrderPred(a, b) + if a and not b then + return true + end + + if b and not a then + return false + end local spellA = a[1] local spellB = b[2]