It works similar to deploying your troops with a difference that you can drop spells anywhere on the map.