Great Scorch WeakAura but NEED to alter this code somehow!
I found this great weakaura on wago for Scorch to be able to see what targets are below 30% health and are in scorch/execute range. It shows a glowing scorch icon right on enemy targets nameplates even if I don't have them selected which is great. The link for the WA is here: https://wago.io/DCkx9HrBE
My problem is that I use the personal resource display, which in the code is considered to be a nameplate so whenever I drop below 30% it shows it beside my PRD. I guess because the trigger code specifies "unit" which I'm assuming is the cause for this. It just takes any unit with a nameplate shown so I would like to be able to change it so that it only applies to hostile/neutral units (or w.e but pretty much just not myself). So from the bit of research I've done, I'm guessing I need to alter the code so that it applies to <=4 for the reaction type? IDK and I don't have any clue on writing code so I've come here in the hopes that someone can help me. Trigger Code: Code:
function (allstates, event,unit, ...) |
I posted on your MMOC thread, but I'll answer here as well. UnitCanAttack will filter for hostile or neutral units, and I'm pretty sure you can't attack yourself so your nameplate will be left alone. The nameplate loop logic was also a bit redundant.
Lua Code:
|
All times are GMT -6. The time now is 10:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI