refactored unfusing into its own method

This commit is contained in:
infinitefusion
2022-06-03 16:55:16 -04:00
parent 08248ede89
commit a019fb5a74

View File

@@ -1394,6 +1394,12 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
end
else
#UNFUSE
return true if pbUnfuse(pokemon,scene,supersplicers)
end
end
def pbUnfuse(pokemon, scene,supersplicers)
bodyPoke = getBasePokemonID(pokemon.species_data.id_number, true)
headPoke = getBasePokemonID(pokemon.species_data.id_number, false)
@@ -1477,7 +1483,6 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
return true
end
end
end
end
ItemHandlers::UseOnPokemon.add(:SUPERSPLICERS, proc { |item, pokemon, scene|