For spells like flame arrows, lightning arrow or absorb elements, the spells are cast before making an attack, yet they deal damage when an attack hits.
Flame arrows would deal 1d6 fire damage, lightning arrow 4d8 lighting damage, or absorb elements dealing 1d6 of the absorbed elemental damage on the turn after absorb elements has been used as a reaction, from a melee attack.
When the attack charged with the spell hits, does this count as a spell for other mechanical purposes?
For example:
I had the Elemental Adept feat for fire or lightning, and make an attack charged with one of these spells. I then roll a 1 on the damage die made for the attack. If Elemental Adept applies this damage roll now counts as a 2 and undercuts resistance to its element.
I'm unsure; this seemt be an edge case where it's unclear whether ongoing spells cast historically confer their status of being a spell when taking the Attack action.
Furthermore, do magic damage rolls made due to magic items count?