Ignore healing to the Smoldering Seedling spawned by the trinket.

This commit is contained in:
Flamanis
2024-01-10 22:24:22 -06:00
parent f078bd5296
commit 1497180bfa
+16
View File
@@ -476,6 +476,9 @@
--Ozumat - Throne of Tides
[44566] = true,
--Smoldering Seedling trinket
[212590] = true,
}
local ignored_npcids = {}
@@ -2404,6 +2407,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]