Dont give experience to fainted+AI Pokemon

This commit is contained in:
Deukhoofd committed 2025-11-20 17:27:36 +01:00
1 parent 5d491a725d
commit 4928157cd4
1 file changed
+4
+4
View File
@@ -1186,6 +1186,10 @@ public class PokemonImpl : ScriptSource, IPokemon
foreach (var opponent in BattleData.SeenOpponents.WhereNotNull())
{
if (!opponent.IsUsable)
continue;
if (!opponent.AllowedExperience)
continue;
opponent.AddExperience(Library.ExperienceGainCalculator.CalculateExperienceGain(this, opponent));
}