From 13953ae8f0651e1fcc3c4d049a4f8c124f3ff1fc Mon Sep 17 00:00:00 2001 From: d87 Date: Tue, 30 Apr 2024 19:10:50 +0700 Subject: [PATCH] Fixed missing spell error on clone ID warning --- Aptechka.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Aptechka.lua b/Aptechka.lua index 7290445..09afd23 100644 --- a/Aptechka.lua +++ b/Aptechka.lua @@ -793,7 +793,10 @@ function Aptechka:GenerateMergedConfig() for additionalSpellID, enabled in pairs(opts.clones) do -- if clone spell ID is at the same time a root ID of another spell if config[category][additionalSpellID] then - print(string.format("[Aptechka] Conflicting spell IDs: %d (%s) already exists as root ID", additionalSpellID, GetSpellInfo(additionalSpellID))) + local spellName = GetSpellInfo(additionalSpellID) + if spellName then + print(string.format("[Aptechka] Conflicting spell IDs: %d (%s) already exists as root ID", additionalSpellID, spellName)) + end else if enabled then tempTable[additionalSpellID] = opts