mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed Sweet Scent not working
This commit is contained in:
@@ -834,7 +834,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
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class Pokemon
|
|||||||
@ability = nil
|
@ability = nil
|
||||||
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
|
||||||
|
|
||||||
# The same as def form=, but yields to a given block in the middle so that a
|
# 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?
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user