This commit is contained in:
@@ -1184,6 +1184,11 @@ public class PokemonImpl : ScriptSource, IPokemon
|
||||
BattleData.BattleSide.MarkFaint(BattleData.Position);
|
||||
BattleData.BattleSide.ForceClearPokemonFromField(BattleData.Position);
|
||||
|
||||
foreach (var opponent in BattleData.SeenOpponents.WhereNotNull())
|
||||
{
|
||||
opponent.AddExperience(Library.ExperienceGainCalculator.CalculateExperienceGain(this, opponent));
|
||||
}
|
||||
|
||||
// Validate the battle state to see if the battle is over.
|
||||
BattleData.Battle.ValidateBattleState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user