From 67fc59ad4e30dbf3ed57e4a6bf596dca23836137 Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sat, 30 Oct 2021 23:27:46 +0100 Subject: [PATCH] Fixed typo from previous commit --- Data/Scripts/012_Overworld/007_Overworld_DayCare.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb b/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb index 2bca2ff74..f5464721c 100644 --- a/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb +++ b/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb @@ -80,7 +80,7 @@ class DayCare move_mother = (father[1]) ? father[0] : mother[0] moves = [] # Get level-up moves known by both parents - egg.getMoveList. each do |move| + egg.getMoveList.each do |move| next if move[0] <= egg.level # Could already know this move by default next if !mother[0].hasMove?(move[1]) || !father[0].hasMove?(move[1]) moves.push(move[1]) @@ -102,7 +102,7 @@ class DayCare end if Settings::BREEDING_CAN_INHERIT_EGG_MOVES_FROM_MOTHER && move_mother.female? egg.species_data.egg_moves.each do |move| - moves.push(move) if move_mother.hasMove?(move)) + moves.push(move) if move_mother.hasMove?(move) end end # Learn Volt Tackle if a parent has a Light Ball and is in the Pichu family