From 2689467a7c4aaa02429a0a4ef9c6b62e8130a8dd Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Fri, 28 Apr 2023 09:18:41 +0200 Subject: [PATCH] Moves can't be learned twice after level ups --- P3D/Battle/BattleSystemV2/Battle.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/P3D/Battle/BattleSystemV2/Battle.vb b/P3D/Battle/BattleSystemV2/Battle.vb index 9998e6177..a5bb8cd87 100644 --- a/P3D/Battle/BattleSystemV2/Battle.vb +++ b/P3D/Battle/BattleSystemV2/Battle.vb @@ -8212,7 +8212,7 @@ BattleScreen.BattleQuery.Add(New PlaySoundQueryObject("Battle\exp_max", False)) BattleScreen.BattleQuery.Add(New TextQueryObject(Core.Player.Pokemons(PokeIndex).GetDisplayName() & " reached level " & moveLevel & "!")) BattleScreen.BattleQuery.Add(New DisplayLevelUpQueryObject(Core.Player.Pokemons(PokeIndex), oldStats)) - If Core.Player.Pokemons(PokeIndex).AttackLearns.ContainsKey(moveLevel) = True Then + If Core.Player.Pokemons(PokeIndex).AttackLearns.ContainsKey(moveLevel) = True AndAlso Core.Player.Pokemons(PokeIndex).KnowsMove(Core.Player.Pokemons(PokeIndex).AttackLearns(Core.Player.Pokemons(PokeIndex).Level)) = False Then BattleScreen.BattleQuery.Add(New LearnMovesQueryObject(Core.Player.Pokemons(PokeIndex), Core.Player.Pokemons(PokeIndex).AttackLearns(moveLevel), BattleScreen)) End If End If