Please officially confirm: a swarm (eg. swarm of ravens) is a single monster/combatant for purposes of targeting attacks, dealing damage, and adjudicating targets in areas of effect. Is that correct? Thank you for all you guys do. yes – if it's one stat block, it's one creature, though note that a swarm might have special abilities that interact with things like opportunity attacks
— Mike Mearls (@mikemearls) May 25, 2018