API CombatLog Object IsA

Compares two UnitFlag bitfields. flag1, flag2 = CombatLog_Object_IsA(flag1, flag2)

Arguments

 * flag1 : - UnitFlag bitfield, typically a sourceFlags or destFlags paramater from.
 * flag2 : - UnitFlag bitfield, typically a COMBATLOG_FILTER constant.

Returns

 * isTrue : - true if the flags match, false otherwise.

Details

 * 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. The easiest way to obtain a valid bitfield to pass as the second parameter is to use one of the COMBATLOG_FILTER objects from FrameXML/Constants.lua:

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

Example
Checks if the sourceFlags parameter of a matches the player.