Iran publicly maintains that it doesn't want war. But punishing military blows from Israel would pose a obstacle to its leaders, that are intent on not showing weak and vulnerable, especially right after Israel’s assassinations of multiple leaders of Hamas and Hezbollah. Each of those groups are backed by Iran. https://bookmark-media.com/story18420807/the-definitive-guide-to-israel-news-libanon