Checks if the player's attack is on cooldown.
Checks if the given item is on cooldown and cannot be used.