mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes crash in safari zone because of type icons
This commit is contained in:
@@ -275,7 +275,6 @@ class PokemonDataBox < SpriteWrapper
|
|||||||
0,(s-1)*STATUS_ICON_HEIGHT,-1,STATUS_ICON_HEIGHT])
|
0,(s-1)*STATUS_ICON_HEIGHT,-1,STATUS_ICON_HEIGHT])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
#Draw type icons (foe Pokémon only)
|
#Draw type icons (foe Pokémon only)
|
||||||
if @battler.opposes?(0) && $PokemonSystem.type_icons
|
if @battler.opposes?(0) && $PokemonSystem.type_icons
|
||||||
drawEnemyTypeIcons(imagePos)
|
drawEnemyTypeIcons(imagePos)
|
||||||
@@ -287,6 +286,7 @@ class PokemonDataBox < SpriteWrapper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def drawEnemyTypeIcons(imagePos)
|
def drawEnemyTypeIcons(imagePos)
|
||||||
|
return if @battler.is_a?(PokeBattle_FakeBattler)
|
||||||
type1_number = GameData::Type.get(@battler.type1).id_number
|
type1_number = GameData::Type.get(@battler.type1).id_number
|
||||||
type2_number = GameData::Type.get(@battler.type2).id_number
|
type2_number = GameData::Type.get(@battler.type2).id_number
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user