Merge pull request #665 from Flamanis/Ignore-Smoldering-Seedling-Healing

Ignore healing to the Smoldering Seedling spawned by the trinket.
This commit is contained in:
Tercio Jose
2024-01-14 23:18:05 -03:00
committed by GitHub
+16
View File
@@ -476,6 +476,9 @@
--Ozumat - Throne of Tides
[44566] = true,
--Smoldering Seedling trinket
[212590] = true,
}
local ignored_npcids = {}
@@ -2414,6 +2417,19 @@
return
end
--> npcId check for ignored npcs
--> get the npcId from the cache, if it's not there then get it from the serial and add it to the cache
local npcId = npcid_cache[targetSerial] --target npc
if (not npcId) then
--this string manipulation is running on every event
npcId = tonumber(select(6, strsplit("-", targetSerial)) or 0)
npcid_cache[targetSerial] = npcId
end
if (ignored_npcids[npcId]) then
return
end
if (not sourceName) then
--no actor name, use spell name instead
sourceName = names_cache[spellName]