mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed incorrect status condition icon used for fainted Pokémon and Pokémon with Pokérus
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -314,11 +314,11 @@ class PokemonSummary_Scene
|
||||
# Show status/fainted/Pokérus infected icon
|
||||
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
|
||||
imagepos.push(["Graphics/Pictures/statuses", 124, 100, 0, 16 * status, 44, 16])
|
||||
|
||||
Reference in New Issue
Block a user