Note that it says ranged weapon attacks.
Frankthedm is right, storms won't affect make it impossible to zap things with spells (though it might make it hard to cast in the first place), see the Concentration skill.
Depending on the nature of the storm, you may not be able to see far enough away to target creatures with ray spells. Best to stick to lines and other spells you can cast blindly...