BattleAutoEnd: the saga continues.

possibly the most confounding bug in this feature so far.
invert the invisible button.
fix debriefing bug.
Merge remote-tracking branch 'upstream/master'