I made a variation of the "item" evolution method to evolve Pokémon into different forms, like Dewott into Hisuian Samurott or Ursaring into Bloodmoon Ursaluna, using a specific item.
However, there's a small problem: when you try to use the item on the Pokémon in the party, it says "Unable," even though if you select the Pokémon, the evolution proceeds normally into the alternate form.
Any idea how to fix this?
Here is the code:
However, there's a small problem: when you try to use the item on the Pokémon in the party, it says "Unable," even though if you select the Pokémon, the evolution proceeds normally into the alternate form.
Any idea how to fix this?
Here is the code:
Ruby:
GameData::Evolution.register({
:id => :UseItemForm,
:parameter => :Item,
:use_item_proc => proc { |pkmn, item, parameter|
next false unless item == parameter
pkmn.form = 1
next true
}
})