Function: InSameRaid(spawn, target [, is_leader_group])
Description:
Tests whether the target entity's original group appears in the source entity's original group's raid-group list. With is_leader_group true, requires the target group to be the first entry (the raid leader group). Both membership/group allocations are retained for the native query; a replacement allocation at the same group ID/address cannot become either endpoint.
Parameters:
spawn(Spawn) - Source entity.target(Spawn) - Entity to compare.is_leader_group(boolean, optional) - Defaults to false.
Returns: Boolean. Missing/invalid entities, memberships or groups return false.