Auto-translated
1. What script is needed so that when entering a region, an enemy castle switches to your side?
2. What should I do if I place a Temple with a first-level spell and set the "Weakness" spell, but when saving the map, I get an error: NO_Spell, and this spell cannot be learned. What should I do?
3. How do I prevent units from being upgraded, for example, from Haven to Landlords, Archers, etc.?