summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAjarmar <axel.jarmar@gmail.com>2021-03-04 21:19:43 +0100
committerAjarmar <axel.jarmar@gmail.com>2021-03-04 21:19:43 +0100
commit8f1f7db8d5976ae067ca98e987e2f2ba156cd34a (patch)
tree3c9b6724ed5d758d68aa15a012a293b012e11ad6 /src
parentc42da2cea4e2c0fd10ec65e09c9f068e47f89bf9 (diff)
gen 7: fix "follow evolutions" not working for alt formes when evolutions are unchanged
Diffstat (limited to 'src')
-rw-r--r--src/com/dabomstew/pkrandom/romhandlers/Gen7RomHandler.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/dabomstew/pkrandom/romhandlers/Gen7RomHandler.java b/src/com/dabomstew/pkrandom/romhandlers/Gen7RomHandler.java
index 097e331..91a4240 100644
--- a/src/com/dabomstew/pkrandom/romhandlers/Gen7RomHandler.java
+++ b/src/com/dabomstew/pkrandom/romhandlers/Gen7RomHandler.java
@@ -513,10 +513,16 @@ public class Gen7RomHandler extends Abstract3DSRomHandler {
if (pk.baseForme != null && pk.baseForme.number == Gen7Constants.rockruffIndex && pk.formeNumber > 0) {
evol.from = pk.baseForme;
pk.baseForme.evolutionsFrom.add(evol);
+ pokes[absolutePokeNumByBaseForme.get(species).get(evol.forme)].evolutionsTo.add(evol);
}
if (!pk.evolutionsFrom.contains(evol)) {
pk.evolutionsFrom.add(evol);
- if (!pk.actuallyCosmetic) pokes[species].evolutionsTo.add(evol);
+ if (!pk.actuallyCosmetic) {
+ if (evol.forme > 0) {
+ species = absolutePokeNumByBaseForme.get(species).get(evol.forme);
+ }
+ pokes[species].evolutionsTo.add(evol);
+ }
}
}
}