In my opinion, the decision whether to fire the AA or the land based weapon should be a decision of the player, not set by default to the AI to decide.
If anyone has a solution to overwrite this in a mod, it would be appreciated, I have tried and failed myself but i would think best is to repeal it and set it back to how it was. Not trying to bash the person who implemented it, just saying we should just do something because we can.