Fixed incorrect status condition icon used for fainted Pokémon and Pokémon with Pokérus

This commit is contained in:
Maruno17
2022-05-20 17:39:17 +01:00
parent b344cb7fcc
commit d28ccd13e1
2 changed files with 4 additions and 4 deletions

View File

@@ -383,11 +383,11 @@ class PokemonPartyPanel < SpriteWrapper
# Draw status
status = -1
if @pokemon.fainted?
status = GameData::Status.count
status = GameData::Status.count - 1
elsif @pokemon.status != :NONE
status = GameData::Status.get(@pokemon.status).icon_position
elsif @pokemon.pokerusStage == 1
status = GameData::Status.count + 1
status = GameData::Status.count
end
if status >= 0
statusrect = Rect.new(0, 16 * status, 44, 16)