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
|
end
|
||||||
else
|
else
|
||||||
#UNFUSE
|
#UNFUSE
|
||||||
|
return true if pbUnfuse(pokemon,scene,supersplicers)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def pbUnfuse(pokemon, scene,supersplicers)
|
||||||
|
|
||||||
bodyPoke = getBasePokemonID(pokemon.species_data.id_number, true)
|
bodyPoke = getBasePokemonID(pokemon.species_data.id_number, true)
|
||||||
headPoke = getBasePokemonID(pokemon.species_data.id_number, false)
|
headPoke = getBasePokemonID(pokemon.species_data.id_number, false)
|
||||||
@@ -1477,7 +1483,6 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
ItemHandlers::UseOnPokemon.add(:SUPERSPLICERS, proc { |item, pokemon, scene|
|
ItemHandlers::UseOnPokemon.add(:SUPERSPLICERS, proc { |item, pokemon, scene|
|
||||||
|
|||||||
Reference in New Issue
Block a user