Skip to content

Commit

Permalink
ClassicEra combat log: fix spell checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and InfusOnWoW committed Oct 8, 2023
1 parent 4c18c7a commit ff47311
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff47311

Please sign in to comment.