Why can't I fire the longbow "Shift"?

Longbow "Shift" detects which element (fire/lightning/...) is the enemy susceptible to, and shoots the relevant type of projectile. If there are no susceptible enemies nearby, the longbow does not function.