From 141bffe4c32660959835495be799fcc479197169 Mon Sep 17 00:00:00 2001 From: PrabbyDD Date: Fri, 18 Oct 2024 13:41:15 -0700 Subject: [PATCH] fixing the exp bug --- src/battle-scene.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 8c0cbf0b976..850d0baab5d 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -3038,7 +3038,6 @@ export default class BattleScene extends SceneBase { const expPartyMembers = nonFaintedPartyMembers.filter(p => p.level < this.getMaxExpLevel()); const partyMemberExp: number[] = []; // EXP value calculation is based off Pokemon.getExpValue - console.log("PARTIPADOS", this.currentBattle.playerParticipantIds); if (useWaveIndexMultiplier) { expValue = Math.floor(expValue * this.currentBattle.waveIndex / 5 + 1); } @@ -3117,14 +3116,6 @@ export default class BattleScene extends SceneBase { if (exp) { const partyMemberIndex = party.indexOf(expPartyMembers[pm]); - // Maybe here? - /* - I think that this hyper specific bug is because initally, the pokemon being switched in right before opposing pokemons death is not counted as participant, - and not in the expPartyMembers maybe? - - in the other cause where I switched both in but swapped last second before toxic death, then both had already been involved in fight - - */ this.unshiftPhase(expPartyMembers[pm].isOnField() ? new ExpPhase(this, partyMemberIndex, exp) : new ShowPartyExpBarPhase(this, partyMemberIndex, exp)); } }