Keyword Deflect :
The X hits that are deflected are the ordered dice that has the same color rank as the attacking unit, or X hits deflected is the number based on rank of the attacker (like green = 1, blue =2, red =3)?
They don't go into great details of it in the rules. My understanding is melee attackers can't ever hit on dice results that match their colored rank (i.e. a melee attacker of the same rank as the target can only ever hit on valor, whereas a different colored rank attacker makes the deflect rule useless. Not counting Polearm .)