I'm trying to make the game check your bag to see if you have an Alolan Flower and if you do then Pokemon in your party become Alolan form
but for some reason it's by passing the item check and just makes them Alolan form without having the item in bag.
but for some reason it's by passing the item check and just makes them Alolan form without having the item in bag.
Code:
##########################################################
#TEST
##########################################################
MultipleForms.register(:BULBASAUR,{
"getForm"=>proc{|pokemon|
next 1 if $PokemonBag.pbQuantity(:ALOLANFLOWER)>0 # Alolan Form
next 0 # Ordinary Form
},
"type1"=>proc{|pokemon|
next getID(PBTypes,:POISON)
next
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:POISON)
next
}