And if you then use such a program in online play... you will inevitably be suspected of cheating... IMHO.
Sincerely, K0Lb@zzeR.
Of course, if you create such a program, skills like luck and morale will become almost unnecessary, but it's still worth writing it.
In short, about luck and negative morale...
As you know, luck is calculated before the unit's attack, the condition remains the same. But the condition for negative morale is slightly different: mod(R, 12) + 1 < -m (m < 0). From this, it is clear that negative morale will occur twice as often as positive morale (with equal morale units).