Chromatic Orb
1st-level Evocation, 90 ft, Ranged spell attack
In Threadlight
Energy orb: ranged attack for 3d8 of a type you choose; may leap. Action · 90 ft · V, S, M (a diamond worth 50+ GP) · Instantaneous Choose Acid, Cold, Fire, Lightning, Poison or Thunder, then make a ranged spell attack against a target in range. On a hit, it takes 3d8 damage of that type. If two or more of the d8s show the same number, the orb leaps to a different target of your choice within 30 ft of the target: make a new attack roll and a new damage roll. With a level 1 slot the orb can't leap again. Higher levels: +1d8 damage for each slot level above 1; the orb can leap up to a number of times equal to the slot's level, and each creature can be targeted only once per casting.

SRD 5.2.1 (2024) rules text
You hurl an orb of energy at a target within range. Choose Acid, Cold, Fire, Lightning, Poison, or Thunder for the type of orb you create, and then make a ranged spell attack against the target. On a hit, the target takes 3d8 damage of the chosen type.
If you roll the same number on two or more of the d8s, the orb leaps to a different target of your choice within 30 feet of the target. Make an attack roll against the new target, and make a new damage roll. The orb can’t leap again unless you cast the spell with a level 2+ spell slot.
Using a Higher-Level Spell Slot
The damage increases by 1d8 for each spell slot level above 1. The orb can leap a maximum number of times equal to the level of the slot expended, and a creature can be targeted only once by each casting of this spell.
This work includes material from the System Reference Document 5.2.1 ("SRD 5.2.1") by Wizards of the Coast LLC, available at https://www.dndbeyond.com/srd. The SRD 5.2.1 is licensed under the Creative Commons Attribution 4.0 International License.