Fixed: player's legs staying invisible when map transferring from tall grass, error when showing the Move Relearner a Pokémon that has no level-up moves it can relearn, Trainer Type Editor spamming the console when selecting the "new" option

This commit is contained in:
Maruno17
2021-06-12 16:12:36 +01:00
parent 63fb7aadf7
commit eb1458018d
3 changed files with 7 additions and 2 deletions

View File

@@ -363,6 +363,7 @@ class Game_Character
@real_x = @x * Game_Map::REAL_RES_X
@real_y = @y * Game_Map::REAL_RES_Y
@prelock_direction = 0
calculate_bush_depth
triggerLeaveTile
end

View File

@@ -672,7 +672,7 @@ class Pokemon
return false if egg? || shadowPokemon?
this_level = self.level
getMoveList.each { |m| return true if m[0] <= this_level && !hasMove?(m[1]) }
@first_moves.each { |m| return true if !pkmn.hasMove?(m) }
@first_moves.each { |m| return true if !hasMove?(m) }
return false
end

View File

@@ -481,7 +481,11 @@ class TrainerTypeLister
@sprite.bitmap.dispose if @sprite.bitmap
return if index < 0
begin
@sprite.setBitmap(GameData::TrainerType.front_sprite_filename(@ids[index]), 0)
if @ids[index].is_a?(Symbol)
@sprite.setBitmap(GameData::TrainerType.front_sprite_filename(@ids[index]), 0)
else
@sprite.setBitmap(nil)
end
rescue
@sprite.setBitmap(nil)
end