Bunny67 / WeakAuras-WotLK

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
GNU General Public License v2.0
161 stars 105 forks source link

Actions: Chat Message: Whisper target don't accept dynamic text #62

Open AFKoncore opened 3 years ago

AFKoncore commented 3 years ago

Describe the bug

When trying to send a whisper to %X.casterName it tries to whisper the litteral string %1.casterName (for exemple) and throw an error. Dynamic text in the message itself works fine. Do you have an error log of what happened?

ID: 1
Error occured in: Global
Count: 1
Message: SendChatMessage(): Whisper message missing target player!
Debug:
   [string "*:OnLoad"]:6:
      [string "*:OnLoad"]:1
   [C]: ?
   [C]: ?
   [C]: SendChatMessage()
   [string "SendChatMessage("Innervated.","WHISPER",nil..."]:1: in main chunk
   [C]: RunScript()
   ..\FrameXML\ChatFrame.lua:1996: value()
   ..\FrameXML\ChatFrame.lua:4070: ChatEdit_ParseText()
   ..\FrameXML\ChatFrame.lua:3660: ChatEdit_SendText()
   ..\FrameXML\ChatFrame.lua:2477:
      ..\FrameXML\ChatFrame.lua:2470
   [C]: ?
   [C]: UseAction()
   ..\FrameXML\SecureTemplates.lua:310: handler()
   ..\FrameXML\SecureTemplates.lua:529:
      ..\FrameXML\SecureTemplates.lua:478

To Reproduce

Steps to reproduce the behavior: Go to Actions >On Show > Tick Chat Message > Choose Whisper as Message Type, Send To: %1.casterName Self apply a buff you've set the aura to trigger to.

Which version of WeakAuras are you using? 3.1.5