Select Matching Colors with the Magic Wand
A sprite has two gold badges connected by a teal strap. Use the Magic Wand to select just the left badge, then try selecting both gold areas without touching the strap.
Start with one connected patch
In the Layers panel, select the layer that actually contains the badges. The wand matches pixels on the active layer, not the complete image you see on the canvas. If a highlight on another layer is visible over the badge, it is not part of the same selection. See Layers & groups if you need to identify which layer holds the pixels.
Choose Magic Wand from the tool rail. Open Drawing and selection options, set Tolerance to 0, enable Contiguous, and set Selection mode to Replace. Choose Done and click solid gold inside the left badge. The selection should surround that badge and leave the second one untouched.
Include the other badge without including the strap
Turn off Contiguous and click the same gold pixel again. The wand now looks for matching colors across the active layer, even when an unrelated color or a transparent gap separates them. A selection can have two separate outlines: its width in the status bar spans both badges, but the strap can still be outside the selection.

Refine the selection before painting
If a darker rim should be included, increase Tolerance a little and click again. Check the outline before painting: more tolerance can also pick up gold elsewhere on the layer. For more control, keep the tolerance low and use Add to click another shade or Subtract to remove an unwanted match. Switch back to Replace before starting a new selection from scratch.
Once the outline is right, use a drawing tool to edit within it. Deselect when you finish so the next brush stroke is not clipped by the old outline. If you need the same sprite in another color scheme without repainting it, consider color variants instead.
Check the result with one small edit
With both badges selected, drag a short test stroke across a badge edge and onto the strap. The new color should appear inside the badge and stop at the selection boundary. Undo the stroke before making the final edit. If you only meant to change one badge, return to Contiguous and make a fresh selection instead of painting around the second badge by hand.
If clicking a badge selects empty space instead, check the active layer and click again well inside the solid color, not on its transparent edge.