mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
fixes crash when trying to unfuse a triple fusion
This commit is contained in:
@@ -1471,6 +1471,11 @@ def pbFuse(pokemon, poke2, splicer_item)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil)
|
def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil)
|
||||||
|
if pokemon.species_data.id_number > (NB_POKEMON * NB_POKEMON) + NB_POKEMON #triple fusion
|
||||||
|
scene.pbDisplay(_INTL("{1} cannot be unfused.", pokemon.name))
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
pokemon.spriteform_body=nil
|
pokemon.spriteform_body=nil
|
||||||
pokemon.spriteform_head=nil
|
pokemon.spriteform_head=nil
|
||||||
|
|
||||||
@@ -1482,11 +1487,6 @@ def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil)
|
|||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
if Kernel.pbConfirmMessageSerious(_INTL("Should {1} be unfused?", pokemon.name))
|
if Kernel.pbConfirmMessageSerious(_INTL("Should {1} be unfused?", pokemon.name))
|
||||||
if pokemon.species_data.id_number > (NB_POKEMON * NB_POKEMON) + NB_POKEMON #triple fusion
|
|
||||||
scene.pbDisplay(_INTL("{1} cannot be unfused.", pokemon.name))
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
keepInParty = 0
|
keepInParty = 0
|
||||||
if $Trainer.party.length >= 6 && !pcPosition
|
if $Trainer.party.length >= 6 && !pcPosition
|
||||||
scene.pbDisplay(_INTL("Your party is full! Keep which Pokémon in party?"))
|
scene.pbDisplay(_INTL("Your party is full! Keep which Pokémon in party?"))
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user