localMainfor_,vinpairs(getgc(true))doiftypeof(v)=="table"andrawget(v,"DataManager")thenMain=vbreakendendifMain.DataManager.currentChunk.regionData.Grassthen--[[ You can spam the doWildBattle function by doing this
Main.Battle.currentBattle = nil
--]]Main.Battle.doWildBattle(Main.Battle,Main.DataManager.currentChunk.regionData.Grass,{})--[[ You can get information of the loomians in currentBattle
for _,v in pairs(Main.Battle.currentBattle) do
print(_,v)
end
]]--[[ End battle
Main.Battle.currentBattle.BattleEnded:Fire()
]]end