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

    Matenia

    Posted

    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+)

    Pudge

    Posted

    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 ...

    Matenia

    Posted

    There is no other way. If you are on their threat, you are in combat. Otherwise literally there is NO WAY. It's not in the game.



    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...