Fixed Game Variables that are nil being treated as 0 instead, fixed missing error message when a required plugin is missing

This commit is contained in:
Maruno17
2021-05-07 18:20:52 +01:00
parent 6efca2f9a8
commit 654be6c1de
6 changed files with 10 additions and 21 deletions

View File

@@ -479,7 +479,7 @@ end
def pbConvertItemToPokemon(variable, array)
item = GameData::Item.get(pbGet(variable))
pbSet(variable, 0)
pbSet(variable, nil)
for i in 0...(array.length / 2)
next if item != array[2 * i]
pbSet(variable, GameData::Species.get(array[2 * i + 1]).id)