mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-29 20:27:18 +00:00
[Bug] Preventing the MBH from being stolen in Endless (#3630)
* Endless MBH Fix * add import * Revert "add import" This reverts commit 814a4059c2830e972c348d698259535e117850bf. * Revert "Endless MBH Fix" This reverts commit 8eb448130132ff9eed614a2ec576926814008df0. * removed newline --------- Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt> Co-authored-by: frutescens <info@laptop>
This commit is contained in:
parent
c8ed89e186
commit
65af7a5699
@ -2419,9 +2419,14 @@ export default class BattleScene extends SceneBase {
|
||||
count = Math.max(count, Math.floor(chances / 2));
|
||||
}
|
||||
getEnemyModifierTypesForWave(difficultyWaveIndex, count, [ enemyPokemon ], this.currentBattle.battleType === BattleType.TRAINER ? ModifierPoolType.TRAINER : ModifierPoolType.WILD, upgradeChance)
|
||||
.map(mt => mt.newModifier(enemyPokemon).add(this.enemyModifiers, false, this));
|
||||
.map(mt => {
|
||||
const enemyModifier = mt.newModifier(enemyPokemon);
|
||||
if (enemyModifier instanceof TurnHeldItemTransferModifier) {
|
||||
enemyModifier.setTransferrableFalse();
|
||||
}
|
||||
enemyModifier.add(this.enemyModifiers, false, this);
|
||||
});
|
||||
});
|
||||
|
||||
this.updateModifiers(false).then(() => resolve());
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user