Fixed Pokédex searches not considering the properties of alternate forms, fixed RMXP-style battle transitions not working, tweaked form-inheriting code in breeding

This commit is contained in:
Maruno17
2021-08-22 00:00:51 +01:00
parent 4b768bec32
commit e0e5cfebb7
3 changed files with 8 additions and 6 deletions

View File

@@ -193,8 +193,9 @@ def pbDayCareGenerateEgg
egg.personalID = pid
# Inheriting form
if [:BURMY, :SHELLOS, :BASCULIN, :FLABEBE, :PUMPKABOO, :ORICORIO, :ROCKRUFF, :MINIOR].include?(babyspecies)
newForm = mother.form
newForm = 0 if mother.isSpecies?(:MOTHIM)
parent = (ditto0 || (!pkmn0.female? && ditto1)) ? father : mother
newForm = parent.form
newForm = 0 if parent.isSpecies?(:MOTHIM)
egg.form = newForm
end
# Inheriting Alolan form