mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +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
|
# Draw status
|
||||||
status = -1
|
status = -1
|
||||||
if @pokemon.fainted?
|
if @pokemon.fainted?
|
||||||
status = GameData::Status.count
|
status = GameData::Status.count - 1
|
||||||
elsif @pokemon.status != :NONE
|
elsif @pokemon.status != :NONE
|
||||||
status = GameData::Status.get(@pokemon.status).icon_position
|
status = GameData::Status.get(@pokemon.status).icon_position
|
||||||
elsif @pokemon.pokerusStage == 1
|
elsif @pokemon.pokerusStage == 1
|
||||||
status = GameData::Status.count + 1
|
status = GameData::Status.count
|
||||||
end
|
end
|
||||||
if status >= 0
|
if status >= 0
|
||||||
statusrect = Rect.new(0, 16 * status, 44, 16)
|
statusrect = Rect.new(0, 16 * status, 44, 16)
|
||||||
|
|||||||
@@ -314,11 +314,11 @@ class PokemonSummary_Scene
|
|||||||
# Show status/fainted/Pokérus infected icon
|
# Show status/fainted/Pokérus infected icon
|
||||||
status = -1
|
status = -1
|
||||||
if @pokemon.fainted?
|
if @pokemon.fainted?
|
||||||
status = GameData::Status.count
|
status = GameData::Status.count - 1
|
||||||
elsif @pokemon.status != :NONE
|
elsif @pokemon.status != :NONE
|
||||||
status = GameData::Status.get(@pokemon.status).icon_position
|
status = GameData::Status.get(@pokemon.status).icon_position
|
||||||
elsif @pokemon.pokerusStage == 1
|
elsif @pokemon.pokerusStage == 1
|
||||||
status = GameData::Status.count + 1
|
status = GameData::Status.count
|
||||||
end
|
end
|
||||||
if status >= 0
|
if status >= 0
|
||||||
imagepos.push(["Graphics/Pictures/statuses", 124, 100, 0, 16 * status, 44, 16])
|
imagepos.push(["Graphics/Pictures/statuses", 124, 100, 0, 16 * status, 44, 16])
|
||||||
|
|||||||
Reference in New Issue
Block a user