Jump to content
  • InCombatWithMe


    pudge
    • Product: WRobot General Type: Bug Status: Unconfirmed

    Hi!

    It seems this boolean doesn't return true if the enemy is attacking me but isn't targeting me (using aoe ability for example), or when the enemy is in combat with other npc/player but targeting me. In short: it returns true when enemy is in any kind of combat and targeting me, this is not entirely correct conditions for "is in combat with me".
     

     



    User Feedback

    Recommended Comments

    That's correct behavior. It only checks if you're being targeted by the unit and have combat state AND if you're not ignoring combat in settings.
    If you want to know whether a unit has threat towards you, use the threat API (only works in Wotlk+)

    Link to comment
    Share on other sites
    4 hours ago, Matenia said:

    That's correct behavior. It only checks if you're being targeted by the unit and have combat state AND if you're not ignoring combat in settings.
    If you want to know whether a unit has threat towards you, use the threat API (only works in Wotlk+)

    Good. But what if I want to check that the enemy player is hitting me, but is not targeting me? Only using lua events? It's a headache ...

    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...