Sqw wrote:Appreciate your work and really like it and can't imagine my playing exp without your addon) I also have small question, because interested in binding some logic to mouseover functionality, I mean in "Luna Click Casting Configuration" I can only set spell to cast and its rank, but is there possibility to set more sophisticated logic there? For example I want to check smth before cast, or cast smth another depending from condition...Is it possible to bind Clique, like not to use it separately, but bind functions from Clique(or what is supposed to be linked meaning "A function from your UI or add-ons"). Thank you for any help
It works perfectly, just put any lua code you wish in the textbox and it will work. (There is some upper char limit though.) The ClickCast function sets your target to what you click (and then changes it back) so you can get the unit info that way.
Silly example:
if UnitHealth("target")/UnitHealthMax("target") > 0.5 then CastSpellByName("Heal(Rank 2)") else CastSpellByName("Flash Heal(Rank 7)") endIf you put that code into the box, it will work
By "A function from your UI or add-ons" he means that if you have your logic coded in an addon, you can just call the function.
If you paste this code into any of your addons (I wouldn't recommend this unless you are fairly sure what you are doing):
function MyCoolHealLogic()
if UnitHealth("target")/UnitHealthMax("target") > 0.5 then
CastSpellByName("Heal(Rank 2)")
else CastSpellByName("Flash Heal(Rank 7)")
end
endthen you could simply put
MyCoolHealLogic()in the ClickCast box.
parcus wrote:Hello guys, trying to use the click with a macro (SpellStopCasting + Flash of Light). Is there any way I could do it ?
Just put:
SpellStopCasting(); CastSpellByName("Flash Heal(Rank 7)")in the ClickCast box.