Dont give experience to fainted+AI Pokemon

This commit is contained in:
2025-11-20 17:27:36 +01:00
parent 5d491a725d
commit 4928157cd4

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));
}