I noticed a bug when you change form fusing pokémon (Kyurem in case).
If I have RESHIRAM or ZEKROM like first pokemon ($Trainer.party[0]) and fuse to Kyurem, when i back into overworld the sprite won't refresh (even if i putted '$PokemonTemp.dependentEvents.refresh_sprite' (true) or (false) and give me error when i try to talk to it, because he was deleted by fusion, obviously.
The correct is to turn back to poké ball (calling remove_sprite instead refresh) because Reshiram/Zekrom doesn't exist (until you separate White Kyurem).
How can we fix that?
Also i think the code for that is:
If I have RESHIRAM or ZEKROM like first pokemon ($Trainer.party[0]) and fuse to Kyurem, when i back into overworld the sprite won't refresh (even if i putted '$PokemonTemp.dependentEvents.refresh_sprite' (true) or (false) and give me error when i try to talk to it, because he was deleted by fusion, obviously.
The correct is to turn back to poké ball (calling remove_sprite instead refresh) because Reshiram/Zekrom doesn't exist (until you separate White Kyurem).
How can we fix that?
Also i think the code for that is:
Code:
#Update sprites on use item
module ItemHandlers
class << self
alias follow_triggerUseOnPokemon triggerUseOnPokemon
end
def self.triggerUseOnPokemon(item,pokemon,scene)
ret = follow_triggerUseOnPokemon(item,pokemon,scene)
$PokemonTemp.dependentEvents.refresh_sprite(false) if ret
return ret
en
end
Last edited: