At DCC and CSI and OnePocket.org by the One Pocket rules, if you pocket a ball in your opponent's pocket and jump another object ball off the table, it is a foul, but the ball counts for the opponent, unless the cue ball also jumps the table or pocket scratches.
Simple answer and that's the...