another possible solution is to ban the Dodge spell so that it doesn't appear in any spellbooks, guilds, or anywhere else.
For players, this is a useful mass spell, but when playing against the AI, it causes terrible AI behavior. If the AI has it, it will cast it instead of attacking; if it's cast against the AI, an archer won't shoot from 3 meters away, but will shoot across the entire map at the dodged squire. Only dwarves can get away with this with their priests. It's better for the player to lose 1 spell than to have constant AI blunders. This isn't a map bug; this reaction to Dodge is a bug in Heroes 5, and I don't know what to do about it other than simply disabling it.
I can't disagree with that. The AI's priority for Dodge is too high, but I wouldn't want to completely ban the spell, as it's quite useful in Multiplayer.
Therefore, for Singleplayer, this spell will be completely banned to avoid exploiting the AI's shortcomings. For Multiplayer, when a hero enters the arena, there will be a 25% chance of learning this spell, of course, if the hero has the "Light Magic" skill.
Added 1 hour 59 minutes ago
However, I have another idea on how to make the AI a little smarter without such workarounds and without disabling Dodge.
I'll try to implement and test it, and if everything is okay, it will be included in the release.
[Модификация]Phoenix Vision - Комплексное модифицирование визуального аспекта игры.
[Модификация]UNIT-Баланс существ + визуальные изменения.
[Модификация]NewTransformUndead-Таблица поднятия нежити.
[Модификация]VisualFix-Устрание визуальных багов.
Карты для Heroes V 3.1:
[Карта][1x1]The Last Stand - Дуэльная карта финальных битв
Группа VK:
https://vk.com/club176978884