I have been trying to change the egg group of a pokemon form to Undiscovered so that certain forms can't breed (Much like Ash-Greninja, Hat Pikachu, and Cosplay Pikachu in the main games.) Here is what I have tried so far with results.
Pokemon maintained their original egg group.
Syntax Error.
Pokemon maintained their original egg group.
Pokemon maintained their original egg group.
Pokemon maintained their original egg group.
Code:
"getCompatibility"=>proc{|pokemon|
next if pokemon.form==0
next pokemon.compatibility==Undiscovered # Can Not Breed
}
Syntax Error.
Code:
"getCompatibility"=>proc{|pokemon|
next if pokemon.form==0
when 1; next Compatibility=[Undiscovered] # Can Not Breed
}
Pokemon maintained their original egg group.
Code:
"getCompatibility"=>proc{|pokemon|
next if pokemon.form==0
next [Undiscovered] # Can Not Breed
}
Pokemon maintained their original egg group.
Code:
"getCompatibility"=>proc{|pokemon|
next if pokemon.form==0
next pokemon.Compatibiliity==Undiscovered # Can Not Breed
}