Skip to content

Commit

Permalink
Fixed bug when getting a partner's back sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
Maruno17 committed Apr 27, 2021
1 parent 8e2130c commit f3048ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/Scripts/010_Data/002_PBS data/012_TrainerType.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.check_file(tr_type, path, optional_suffix = "", suffix = "")
tr_type_data = self.try_get(tr_type)
return nil if tr_type_data.nil?
# Check for files
if !optional_suffix.empty?
if optional_suffix && !optional_suffix.empty?
ret = path + tr_type_data.id.to_s + optional_suffix + suffix
return ret if pbResolveBitmap(ret)
end
Expand Down Expand Up @@ -49,7 +49,7 @@ def self.player_front_sprite_filename(tr_type)
end

def self.back_sprite_filename(tr_type)
return self.check_file(tr_type, "Graphics/Trainers/", nil, "_back")
return self.check_file(tr_type, "Graphics/Trainers/", "", "_back")
end

def self.player_back_sprite_filename(tr_type)
Expand Down

0 comments on commit f3048ab

Please sign in to comment.