1. #1
    Deleted

    WA/LUA: show icon if target is in combat

    hey,
    i would like my Weak Auras to show an icon when my target is in combat (and another one when hes not).
    i think its possible, i found this: http://wowwiki.wikia.com/wiki/API_UnitAffectingCombat
    but i have no clue how to turn this into a LUA script, nor how to implement that script into WA.
    can anyone point me in the right direction?
    thanks a lot

  2. #2
    You'd want to go into the Trigger field, make a custom trigger that checks on every frame.

    The trigger code is:

    Code:
    function () {
       return UnitAffectingCombat("target");
    }
    The untrigger code is:

    Code:
    function () {
       return true;
    }

  3. #3
    Deleted
    thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •