Skip to content

Commit

Permalink
Fixed special breeding case (manaphy -> phione)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasQTruong committed Apr 19, 2023
1 parent d50f6f2 commit 8c008fd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.cobblemon.mod.common.api.abilities.AbilityTemplate;
import com.cobblemon.mod.common.api.abilities.PotentialAbility;
import com.cobblemon.mod.common.api.pokemon.Natures;
import com.cobblemon.mod.common.api.pokemon.PokemonSpecies;
import com.cobblemon.mod.common.api.pokemon.egg.EggGroup;
import com.cobblemon.mod.common.api.pokemon.stats.Stats;
import com.cobblemon.mod.common.api.storage.party.PlayerPartyStore;
Expand All @@ -31,6 +32,7 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.Executors;
Expand Down Expand Up @@ -319,7 +321,11 @@ public Pokemon getPokemonBred() {
Species preEvolution = baby.getPreEvolution().getSpecies();
baby.setSpecies(preEvolution);
}


// SPECIAL CASE: manaphy -> phione.
if (String.valueOf(baby.getSpecies()).equals("manaphy")) {
baby.setSpecies(Objects.requireNonNull(PokemonSpecies.INSTANCE.getByName("phione")));
}

// Got the Pokemon, time to set its proper default.
baby.setEvs(new EVs());
Expand Down

0 comments on commit 8c008fd

Please sign in to comment.