I want to test whether a plot has to many units in Lua and I would like to use the exact same criteria that the game uses. The game allows one "Combat" unit and one "Non Combat" unit per plot. I put the words in quotes because I'm not absolutely certain if that's exactly what the game does. Can I just count the units on the plot and use Unit:IsCombatUnit() to determine if things are legal or do I need to use something else?
↧