The effects of battalion abilities vary from card to card. Read each card carefully.

Artwork
Loading artwork…
Boros Mastiff
Dragon's Maze · #1 · EN
Nonfoil—Foil—
Card rules
Battalion — Whenever this creature and at least two other creatures attack, this creature gains lifelink until end of turn. (Damage dealt by a creature with lifelink also causes its controller to gain that much life.)
2/2
Common · Illustrated by Kev Walker
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Once a battalion ability has triggered, it doesn't matter how many creatures are still attacking when that ability resolves.
The three attacking creatures don't have to be attacking the same player, planeswalker, or battle.