Random ability not selecting whats showing on screen



Screenshot 2024-06-08 140210

Greetings. I’m building an ability system similar to that of Vampire Survivros, deep rock galactic survivors, etc and I’m running into a weird issue.

As you can see, I’m randomizing the enums, and then based on that result, applying the texture and setting the ability using an enum switch. This displays the abilities on the level up screen (so far only have two to test with). When I select one, it seems to be randomly selecting one of the two abilities and then applying to the ability bar on the bottom right. The ability that shows up on the bottom right is Always correct FYI. In the example, I tried to select the middle option (the heart) and it gave me the arrows (heart is max HP, arrows are attack speed). I have tried setting the enum to a default, blank ability after applying the ability, but that doesn’t seem to change anything. Any ideas would be greatly appreciated.