Auto-translated
I need to create a script where the hero casts spells on enemy creatures at the beginning of the battle, but if the enemy has immunity, the script throws an error. I tried using an interceptor, but after that, the game freezes, and I can't finish the battle. What should I do?