View Single Post
06-29-21, 04:03 PM   #1
bella123
A Kobold Labourer
Join Date: Jun 2021
Posts: 1
Spell cast via raid marked mob (not targeted)

Looking for help on creating an WA triggers based on the following:

if mob's icon == {skull} and spell == X
then
run this block of code
end

without having the mob targeted.

I pulled up a WA from KT interrupt thing and it was showing:

if subEvent == "SPELL_CAST_START" then
local spellName = (select(13,...))
local sourceName = (select(5,...))
if spellName == "Y" and sourceName == "X" then
aura_env.counter = (aura_env.counter%3)+1
if aura_env.config.group == aura_env.counter then
allstates[""] = {
show = true,
changed = true,
autoHide = true,
duration = 2,
}
end
end

I was looking to replace source name with the block needed to pull from a mob with a raid icon (once again not targeted). Any help would be greatly appreciated!

P.S. For TBCC
  Reply With Quote