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 |
I doubt it is possible .. But if there is a way hopefully someone will know it and let you know
https://wowpedia.fandom.com/wiki/API_GetRaidTargetIndex index = GetRaidTargetIndex(unit) This appears to be the best option .. but it would still mean hoping someone in the group has them targeted and use something like raid1target as the unit id There doesn't appear to be any other function related to this except the one that sets the icon to a unit. |
You can check the RaidFlags parameters from COMBAT_LOG_EVENT_UNFILTERED.
|
I knew someone would know of something :)
|
All times are GMT -6. The time now is 11:15 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI