Open jzy-chitong56 opened 7 months ago
They shouldn't have strength to affect countering and strategies, but general strength should detect and use its level to detect threats.
I also think AttackGroupAddUnknown needs tweaking with standard units so if its defined in standard units it overrides attack groups. Only add unknowns to attack group if its not specified. Also summons are not being included in this list.
At first, AttackGroupAddUnknown
was just to solve two problems. If there are any accompanying issues, it is not my intention
summons unit No need to add an attack group, AI can use it on its own
The main issue is that your branch does not include all summons units. If considering strength, all summons units must be added to the table
Now in the standard unit table, some summoning unit types are not included, such as the Phoenix and summoning unit of Beast King. However, some summoning unit types are marked with attack type strength, which leads to very imprecise calculations
Considering the timeliness of summoning items, it may not be necessary to consider the strength of these units. Even if considered, it is not possible to fully consider them, such as the resurrection of corpses by the Death Knight, which is not a specific range type
In addition, this calculation is also very weak. If players buy all mercenaries, then the strength is only three heroes? And it also cannot support custom maps.
https://github.com/jzy-chitong56/AMAI/commit/ee1bb4738859b5019bda5598310dc2052006631c https://github.com/jzy-chitong56/AMAI/commit/12765a2f6f15c5e693d5a156221691118fb531e7