I had an artillery on 5 health, and 8 rounds in the stockpile, but when I went to fire (it hadn't moved that turn) the -5 was red indicating that I didn't have enough rounds. So it looks like the game does the check for 10 rounds before it checks the health of the arty. Small bug.