axc450 / pbs

Battle Pet Combat Scripting
MIT License
27 stars 10 forks source link

Fix for #73 #74

Closed gizzmo closed 10 months ago

gizzmo commented 11 months ago

To reproduce the error from #73 :

  1. Open the import dialog.
  2. Paste in a script. Not a PBS export text.
  3. Notice the warning and Click continue.
  4. Select the Rematch plugin.
  5. Click the dropdown to select a key, (a Rematch team)
  6. Error happens here.

In Rematch 5, iterating over the Rematch.savedTeams table will only return the methods on that table, and not the teams. Use :AllTeams() to iterate over all the teams.

This has not been tested on Rematch 4, but should work. But whos still running Rematch 4?