Returns whether a unit is in same battleground instance as the player


See also Unit functions, Battlefield functions.

Signature:

raidNum = UnitInBattleground("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • raidNum - Numeric portion of the unit's raid unitID (e.g. 13 for raid13) (number)