mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes crash when swapping diancie for another pokemon after catching
This commit is contained in:
@@ -982,7 +982,7 @@ def swapReleaseCaughtPokemon(caughtPokemon)
|
||||
index = pbGet(1)
|
||||
return false if index == -1
|
||||
releasedPokemon = $Trainer.party[index]
|
||||
pbDisplay("#{releasedPokemon.name} was released.")
|
||||
pbMessage("#{releasedPokemon.name} was released.")
|
||||
pbRemovePokemonAt(index)
|
||||
pbStorePokemon(caughtPokemon)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user