Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Spell cast via raid marked mob (not targeted)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off