You are very unlikely to suffer a terrorist attack in Morocco. It is a very safe country, very tourist oriented and with constant police controls. The locals are also very friendly and hospitable. More so even than in Spain. This sometimes may make us wary, but we recommend you relax and take advantage of opportunities to meet people.