Skip to content

Commit

Permalink
Fixed missing spell error on clone ID warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Apr 30, 2024
1 parent 8bf4115 commit 13953ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13953ae

Please sign in to comment.