fixed #279, even for cases where someone else kills the last enemy