def isLegalMons?(trainer) return false if trainer.noOnlineBattle for i in 0..1 pokemon = $PokemonGlobal.daycare[i][0] next if !pokemon if unavailableMonList(pokemon) print "An unreleased pokemon has been detected. You will be unable to battle online on this file." trainer.noOnlineBattle = true return false end end for i in 0..34 for pokemon in $PokemonStorage[i] next if !pokemon if unavailableMonList(pokemon) print "An unreleased pokemon has been detected. You will be unable to battle online on this file." trainer.noOnlineBattle=true return false end end end for pokemon in trainer.party next if !pokemon if unavailableMonList(pokemon) print "An unreleased pokemon has been detected. You will be unable to battle online on this file." trainer.noOnlineBattle=true return false end end return true end