Gen Function Fix getNumEnemies nil target.