def isLegalMons?(trainer)


SUBMITTED BY: jetblack

DATE: Nov. 19, 2016, 11:53 a.m.

FORMAT: Text only

SIZE: 976 Bytes

HITS: 1624

  1. def isLegalMons?(trainer)
  2. return false if trainer.noOnlineBattle
  3. for i in 0..1
  4. pokemon = $PokemonGlobal.daycare[i][0]
  5. next if !pokemon
  6. if unavailableMonList(pokemon)
  7. print "An unreleased pokemon has been detected. You will be unable to battle online on this file."
  8. trainer.noOnlineBattle = true
  9. return false
  10. end
  11. end
  12. for i in 0..34
  13. for pokemon in $PokemonStorage[i]
  14. next if !pokemon
  15. if unavailableMonList(pokemon)
  16. print "An unreleased pokemon has been detected. You will be unable to battle online on this file."
  17. trainer.noOnlineBattle=true
  18. return false
  19. end
  20. end
  21. end
  22. for pokemon in trainer.party
  23. next if !pokemon
  24. if unavailableMonList(pokemon)
  25. print "An unreleased pokemon has been detected. You will be unable to battle online on this file."
  26. trainer.noOnlineBattle=true
  27. return false
  28. end
  29. end
  30. return true
  31. end

comments powered by Disqus