From ff4731185c5cccb74dd27c92429732b637937fae Mon Sep 17 00:00:00 2001 From: Buds Date: Mon, 9 Oct 2023 00:37:32 +0200 Subject: [PATCH] ClassicEra combat log: fix spell checks --- WeakAuras/Prototypes.lua | 4 ++-- WeakAuras/WeakAuras.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index f212d45f03..4e84d4012a 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -4231,7 +4231,7 @@ Private.event_prototypes = { operator = "preamble", preambleAdd = WeakAuras.IsClassicEra() and "spellChecker:AddName(%q)" or "spellChecker:AddExact(%q)" }, - test = WeakAuras.IsClassicEra() and "spellChecker:Check(spellName)" or "spellChecker:Check(spellId)", + test = WeakAuras.IsClassicEra() and "spellChecker:CheckName(spellName)" or "spellChecker:Check(spellId)", testGroup = "spell", conditionType = "number", type = "spell", @@ -4252,7 +4252,7 @@ Private.event_prototypes = { operator = "preamble", preambleAdd = "spellChecker:AddName(%q)" }, - test = WeakAuras.IsClassicEra() and "spellChecker:Check(spellName)" or "spellChecker:Check(spellId)", + test = WeakAuras.IsClassicEra() and "spellChecker:CheckName(spellName)" or "spellChecker:Check(spellId)", testGroup = "spell", conditionType = "string" }, diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index ef1569d51a..d0af69aaf1 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -5916,6 +5916,9 @@ function Private.ExecEnv.CreateSpellChecker() end, Check = function(self, spellId) return self.spellIds[spellId] or self.names[GetSpellInfo(spellId)] + end, + CheckName = function(self, name) + return self.names[name] end } return matcher