Unfortunetly, it did not work. With the original this:RegisterForClicks("AnyUp");
Maybe I will try and combine the alternate lua and xml.
Interestingly, if I set two attributes, (type1 and type2) it always cast the type2 spell. If I -- out the type1 atribute it will only cast the type2 spell with button2.
ExecuteWarning_Pet_BuffFrame:SetAttribute('type1', 'spell')
ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Health Funnel")
ExecuteWarning_Pet_BuffFrame:SetAttribute('type2', 'spell')
ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Life Tap")
= Life tap both buttons
--ExecuteWarning_Pet_BuffFrame:SetAttribute('type1', 'spell')
--ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Health Funnel")
ExecuteWarning_Pet_BuffFrame:SetAttribute('type2', 'spell')
ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Life Tap")
= Life tap on btn2 only
ExecuteWarning_Pet_BuffFrame:SetAttribute('type1', 'spell')
ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Health Funnel")
--ExecuteWarning_Pet_BuffFrame:SetAttribute('type2', 'spell')
--ExecuteWarning_Pet_BuffFrame:SetAttribute('spell', "Life Tap")
= Health Funnel btn1 only
|