Hello ... once again

,
I would like to know if there is a way to detect when +attack2 is used with a shield , i mean when the shield is covering the player.
What am doing is: am setting a players speed using cur weapon , but the problem is when he uses +attack2 while holding a shield his speed gets reset.
Any links [Even though i've already searched] or help will be deeply appreciated.