I change it thanks, but when I attack once then I can not use the secondary attack again, I mean, when ten seconds pass I can not use it again, it always block.
Why are you surprised? You set the next attack after 9999.0 seconds. It should simply be 10.