WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Help for my clickable weakaura (https://www.wowinterface.com/forums/showthread.php?t=59087)

Nico1420 04-03-22 03:24 PM

Help for my clickable weakaura
 
Hello everyone, I created a weakaura that allows me to launch a BoP on my "focus" when I receive a whisp "bop" by a big button that appears on my screen.
I would like to perfect this and replace my focus with the person who threw the whisp at me.

currently it's like this

aura_env.wplayer = nil
aura_env.button = CreateFrame("Button", "buffButton", aura_env.region, "SecureActionButtonTemplate", BackdropTemplateMixin and "BackdropTemplate")

aura_env.button:SetAllPoints()
aura_env.button:SetAttribute("unit", "focus")
aura_env.button:SetAttribute("type","spell")

aura_env.auraID = 318038
aura_env.button:SetAttribute("spell", 10278)
aura_env.BuffLevel = 8


I put in bold and underlined what I need to change to be able to cast on the person who whisp me... because it's complicated in raid to plan his focus in advance
:p

Kanegasi 04-03-22 04:30 PM

This is not possible.

SDPhantom 04-04-22 05:57 AM

More specifically, anything inheriting SecureActionButtonTemplate is a protected frame and protected frames won't let you change their attributes while in combat.


All times are GMT -6. The time now is 02:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI