10/5/2024: Couldn't figure out the exact issue, but basically it was a problem with queueslots not being unhighlighted. Previously this is how I did it:
func highlightQueueSlot:
unhighlight the previous queue slot
highlight the new queueslot
There was probably an edge case where removing an entity would cause a different queueslot to be highlighted which would be incorrect unhighlighted.
To fix this, I just made it so that the highlight, which was a reference rect that every queueslot scene had, was a node that BattleUI had instead, and then just moved it to the queueslot I wanted to highlight.
10/5/2024: Couldn't figure out the exact issue, but basically it was a problem with queueslots not being unhighlighted. Previously this is how I did it:
There was probably an edge case where removing an entity would cause a different queueslot to be highlighted which would be incorrect unhighlighted.
To fix this, I just made it so that the highlight, which was a reference rect that every queueslot scene had, was a node that BattleUI had instead, and then just moved it to the queueslot I wanted to highlight.