Battalion — Whenever Boros Mastiff and at least two other creatures attack, Boros Mastiff gains lifelink until end of turn. (Damage dealt by a creature with lifelink also causes its controller to gain that much life.)
Once a battalion ability has triggered, it doesn’t matter how many creatures are still attacking when that ability resolves.
The effects of battalion abilities vary from card to card. Read each card carefully.
The three attacking creatures don’t have to be attacking the same player or planeswalker.