Condition "Destination Unit" doesnt work on classic
Lupe4js opened this issue · 3 comments
Project was to whisper the innervate target ("Ïnnervate on you!"), but I had to add a condition to not send a whisper to myself when using innervate on me.
trigger : Event > Combatlog > Successfull cast https://cdn.discordapp.com/attachments/218087027042811905/688002846670716993/unknown.png
action: Announce in /group /raid that innervate was used
https://cdn.discordapp.com/attachments/218087027042811905/688002945903624253/unknown.png
condition: check if innerv target is someone different from player and whisper him
https://cdn.discordapp.com/attachments/218087027042811905/688003046336495619/unknown.png
WA string:
innervate_WA.txt
I use this workaround (as suggested by asakawa) :
if aura_env.state.destName ~= GetUnitName("player") then
SendChatMessage("> Innervate on you!", "WHISPER", nil, aura_env.state.destName)
end