add cooldown for attack