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'sraid
unitID
(e.g. 13 forraid13
) (number
)