Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CombatLog Object IsA

Last wiki revision 2022-08-01

Returns whether a unit from the combat log matches a given filter. isMatch = CombatLog_Object_IsA(unitFlags, mask)

  • unitFlags: - UnitFlag bitfield, i.e. or from.
  • mask: - COMBATLOG_FILTER constant.
  • isMatch: - True if a bitfield in each of the four main categories matches.
  • Both of the arguments to this function must be valid Combat Log Objects. That is, for the four main categories of the UnitFlag bitfield, there must be at least one nonzero bit. Passing in a single COMBATLOG_OBJECT constant will cause the check to return false.

You can also construct your own filter; make sure to use at least one constant from each category:

Prints if the combat log source unit is a hostile NPC.

Source

https://warcraft.wiki.gg/wiki/API_CombatLog_Object_IsA · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.