Anyone knows where the AI checks the presence of the central structure?
AI units seem to be unable to attack anything that stands at (6,11) where it would be, even in battles where there is no such structure.
The AI does recognize the unit, moves there and tries to attack it, so targeting works fine. Ranged units can even shoot at the unit without a problem and spells work too. However melee units are unable to hit them, the game starts lagging a bit and then the unit moves randomly which looks like some last-resort movement for cases when the path is blocked.
I've checked and there is no phantom city wall present, I've already fixed that problem.
This is what happens : https://www.youtube.com/watch?v=h6czKjrT...e=youtu.be
I've looked through procedures related to the units moving but found nothing that looks like the source of the problem. They are quite complicated and would take a while to fully understand.
I don't think the map marks the spot as inaccessible either because I was able to enter so it is probably hardcoded somewhere.
AI units seem to be unable to attack anything that stands at (6,11) where it would be, even in battles where there is no such structure.
The AI does recognize the unit, moves there and tries to attack it, so targeting works fine. Ranged units can even shoot at the unit without a problem and spells work too. However melee units are unable to hit them, the game starts lagging a bit and then the unit moves randomly which looks like some last-resort movement for cases when the path is blocked.
I've checked and there is no phantom city wall present, I've already fixed that problem.
This is what happens : https://www.youtube.com/watch?v=h6czKjrT...e=youtu.be
I've looked through procedures related to the units moving but found nothing that looks like the source of the problem. They are quite complicated and would take a while to fully understand.
I don't think the map marks the spot as inaccessible either because I was able to enter so it is probably hardcoded somewhere.