I really like the idea, there's some really good potential. Maybe you could introduce a mechanic where you can heal but would have to sacrifice one of the dice.
Also, I think the bug happens if you pre-select one of the dice and then either attack or defend. It then gets confused in the next round. So maybe have it reset something whenever you perform an attack/defend.