A creature attacks alone if it's the only creature declared as an attacker during the declare attackers step. For example, Asari Captain's triggered ability won't trigger if you attack with multiple creatures and all but one of them are removed from combat.

Artwork
Loading artwork…
Asari Captain
Kamigawa: Neon Dynasty · #215 · EN
Nonfoil—Foil—
Card rules
Haste
Whenever a Samurai or Warrior you control attacks alone, it gets +1/+0 until end of turn for each Samurai or Warrior you control.
4/3
"Go! Show them your fury!"
Uncommon · Illustrated by Donato Giancola
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Asari Captain's triggered ability gives the solitary attacker +1/+0 for each creature you control that is either a Samurai or a Warrior as it resolves, including the attacker itself, if applicable. A creature that is both a Samurai and a Warrior is only counted once.