mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
refactored unfusing into its own method
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user