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



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...