Not the author, but I’m pretty sure you roll the ATTACKER’S die when you melee or ranged attack, removing it from their pool, and if you hit, you remove one of the DEFENDER’S dice; and if they’re reduced to 0 dice or had no dice before defending (due to using up their dice to attack), they’re dead.