Fixed the spawner max limit so that it works properly even after battle state