Skip to content

CombatAIFix – Fixes AI behavior in combat (for version 3.1).

User Avatar
#22
Auto-translated
Leonion
I decided to test it on a couple of "cool" battles that I prepared for my campaign rework (but which turned out to be so-so due to the stupid AI).

1) Markal vs. Cyrus
Cyrus has 45 magic, spell mastery, light and summoning expert, and wizard luck.

Before the mod, he spammed evasion (which did have some meaning, because the basis of my army was skeleton archers), and occasionally cast damage spells like fireball. With the mod, he spams counterspell (although he is much more dangerous in terms of magic than Markal). Towards the end, he cast Armageddon once. He didn't use any other spells.

2) Markal vs. Godric.
Godric has 20 magic, light master (all 3 spells), dark master (pain, curses, fallen knight).

First phase: the old man cast mass weakness and vulnerability, then several individual slows and ice block on the liches.

Second phase (there I spawn a very strong haven army): he immediately cast mass evasion (I only have a handful of half-dead liches + 100 summoned fire elementals, which still don't deal much damage, the phoenix carries the whole battle), then he cast mass weakness again (although there was still a lot of time left until the end of the previous one), he removed my vampire control, he cast mass weakness for the 3rd time, after which he began to spam divine retribution on the undead. In general, it's not bad, although it's a pity that the old man forgot about the power of Light and only used divine retribution out of all the light potential. And in general, it's strange that a might hero prioritizes debuffs rather than buffs. Buffs are more important for him (especially mass haste, because it relatively slows down the enemy hero, which in the case of Markal is magic, i.e. the main strength). In general, in my opinion, mass haste, slow, dispel and righteous strike should have a very high priority, and not all sorts of weaknesses and vulnerability.

In other battles, there is also a bug with the repeated application of already applied mass spells.
It seems to work for me, at least in the battles that I tested.

I re-uploaded the mod with a reduced priority for counterspell. Previously, the priority for it was calculated, apparently, in such a way that it completely disabled the enemy hero.

The repeated application of weakness can be explained by the appearance of new units on the enemy side (phoenix and elementals) on which the spell was not applied. Perhaps the computer is still incorrectly evaluating the strength of some spells, but you shouldn't expect much from such an AI anyway.

Added 1 minute ago
}{0TT@6bI4
Rhh is back and immediately with good content. Was the "bug" with the computer's byte on evasion stacks fixed?
For now, it looks like it has been fixed.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4