Merge branch 'master' into dev

This commit is contained in:
Maruno17
2021-08-29 23:50:52 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -837,7 +837,7 @@ def pbSweetScent
end end
viewport.dispose viewport.dispose
enctype = $PokemonEncounters.encounter_type enctype = $PokemonEncounters.encounter_type
if enctype || !$PokemonEncounters.encounter_possible_here? || if !enctype || !$PokemonEncounters.encounter_possible_here? ||
!pbEncounter(enctype) !pbEncounter(enctype)
pbMessage(_INTL("There appears to be nothing here...")) pbMessage(_INTL("There appears to be nothing here..."))
end end

View File

@@ -166,7 +166,7 @@ class Pokemon
yield if block_given? yield if block_given?
MultipleForms.call("onSetForm", self, value, oldForm) MultipleForms.call("onSetForm", self, value, oldForm)
calc_stats calc_stats
$Trainer.pokedex.register(self) $Trainer.pokedex.register(self) if $Trainer
end end
def form_simple=(value) def form_simple=(value)