Fixed typo in egg generatio, fixed typo in battle code that changes a Pokémon's type, fixed bug in AI that prevents switching

This commit is contained in:
Maruno17
2021-05-15 20:28:15 +01:00
parent f303b84033
commit 66b40fd181
3 changed files with 5 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ class PokeBattle_Battler
@type2 = (newTypes.length == 1) ? newTypes[0] : newTypes[1]
@effects[PBEffects::Type3] = newType3
else
newType = GameData::Item.get(newType).id
newType = GameData::Type.get(newType).id
@type1 = newType
@type2 = newType
@effects[PBEffects::Type3] = nil