Moved enemy count end battle map condition check/computation to script catalog. Minor code optimization.