mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-11-30 12:08:53 -05:00
Currently, if a pokemon faints during battle, it receives no XP for any opponents it helped defeat - that XP simply vanishes. This is especially punishing in trainer battles where pokemon cycling is common. This adds faint-order tracking so that pokemon who contributed to a kill can still receive XP, as long as the opponent fainted before they did. It also adds support for awarding XP on battle losses or forfeits for opponents that were defeated during the battle. Both behaviors are behind new config options (default off): - awardExperienceToFaintedPokemon: fainted pokemon receive XP for opponents they helped defeat before fainting - awardExperienceOnBattleLoss: pokemon receive XP for opponents defeated even if the battle is lost or forfeited