Returns whether an entity from the combat log matches a given filter


See also CombatLog functions.

Signature:

isMatch = CombatLog_Object_IsA(unitFlags, mask)

Arguments:

  • unitFlags - Source or destination unit flags from a combat log entry (number, bitfield)
  • mask - One of the following global constants: (number, bitfield)
    • COMBATLOG_FILTER_EVERYTHING - Any entity
    • COMBATLOG_FILTER_FRIENDLY_UNITS - Entity is a friendly unit
    • COMBATLOG_FILTER_HOSTILE_PLAYERS - Entity is a hostile player unit
    • COMBATLOG_FILTER_HOSTILE_UNITS - Entity is a hostile non-player unit
    • COMBATLOG_FILTER_ME - Entity is the player
    • COMBATLOG_FILTER_MINE - Entity is a non-unit object belonging to the player; e.g. a totem
    • COMBATLOG_FILTER_MY_PET - Entity is the player's pet
    • COMBATLOG_FILTER_NEUTRAL_UNITS - Entity is a neutral unit
    • COMBATLOG_FILTER_UNKNOWN_UNITS - Entity is a unit currently unknown to the WoW client

Returns:

  • isMatch - 1 if the entity flags match the given mask (1nil)