mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
don't crash when can't place pokemon in pc
This commit is contained in:
Binary file not shown.
@@ -1967,7 +1967,9 @@ class PokemonStorageScreen
|
||||
box = selected[0]
|
||||
index = selected[1]
|
||||
if @storage[box, index]
|
||||
raise _INTL("Position {1},{2} is not empty...", box, index)
|
||||
pbDisplay("Can't place that there.")
|
||||
return
|
||||
echoln _INTL("Position {1},{2} is not empty...", box, index)
|
||||
end
|
||||
if box != -1 && index >= @storage.maxPokemon(box)
|
||||
pbDisplay("Can't place that there.")
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user