If Firemane Avenger's battalion ability resolves but some or all of the damage is prevented, you'll still gain 3 life.

Artwork
Loading artwork…
Firemane Avenger
Ravnica: Clue Edition · #189 · EN
Nonfoil—Foil—
Card rules
Flying
Battalion — Whenever this creature and at least two other creatures attack, this creature deals 3 damage to any target and you gain 3 life.
3/3
Firemane Nevena led the victorious assault on the Barbu Rooftop rebels. Now the Gateless have marked her for death.
Rare · Illustrated by Wayne Reynolds
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer 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
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the target permanent or player is an illegal target when Firemane Avenger's battalion ability tries to resolve, the ability won't resolve and none of its effects will happen. You won't gain 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, planeswalker, or battle.