From a9426b080214c03201e7873020ba32217c2646be Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sun, 29 Aug 2021 23:49:43 +0100 Subject: [PATCH] Fixed Sweet Scent not working --- Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb | 2 +- Data/Scripts/014_Pokemon/001_Pokemon.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb b/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb index 5b7c05700..0475872da 100644 --- a/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb +++ b/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb @@ -834,7 +834,7 @@ def pbSweetScent end viewport.dispose enctype = $PokemonEncounters.encounter_type - if enctype || !$PokemonEncounters.encounter_possible_here? || + if !enctype || !$PokemonEncounters.encounter_possible_here? || !pbEncounter(enctype) pbMessage(_INTL("There appears to be nothing here...")) end diff --git a/Data/Scripts/014_Pokemon/001_Pokemon.rb b/Data/Scripts/014_Pokemon/001_Pokemon.rb index 34f49826c..07f0d693e 100644 --- a/Data/Scripts/014_Pokemon/001_Pokemon.rb +++ b/Data/Scripts/014_Pokemon/001_Pokemon.rb @@ -152,7 +152,7 @@ class Pokemon @ability = nil MultipleForms.call("onSetForm", self, value, oldForm) calc_stats - $Trainer.pokedex.register(self) + $Trainer.pokedex.register(self) if $Trainer end # The same as def form=, but yields to a given block in the middle so that a @@ -165,7 +165,7 @@ class Pokemon yield if block_given? MultipleForms.call("onSetForm", self, value, oldForm) calc_stats - $Trainer.pokedex.register(self) + $Trainer.pokedex.register(self) if $Trainer end def form_simple=(value)