Dont give experience to fainted+AI Pokemon
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user