Lightning Phoenix's last ability looks at how much damage was dealt to opponents in the turn, even if it wasn't in your graveyard when the damage was dealt. It doesn't care if opponents gained life, even if they gained more than they were dealt damage.