tasmania12
Mewtwo Master
- 51
- Posts
- 17
- Years
- Pallet Town
- Seen Nov 18, 2024
In the daycare script i have
Spoiler:
Code:
if (ditto0 && !ditto1)
if ditto0.isShiny?
egg.makeShiny
end
end
When i collect the egg i get an error message about the .isShiny? Part. How would i accomplish this without an error?
The error is "undefined method 'isShiny?' For true:TrueClass"
Edit:
It works perfect with this inserted in the DayCare script:
Spoiler:
Code:
if mother.isShiny? &&
isConst?(mother.species,PBSpecies,:DITTO)
egg.makeShiny
end
if father.isShiny? &&
isConst?(father.species,PBSpecies,:DITTO)
egg.makeShiny
end
Last edited: