As the title says - if I want to make a unit buildable by the AI, but only purchasable for faith by human players, how do I do it in Lua? Events like PlayerCanTrain or CityCanTrain don't seem to offer any way to distinguish between producing the unit and purchasing it for faith.
I added a column to the Units table in the database that controls which units shouldn't be human buildable, so my code checks for this column instead of using a function.