mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 10:16:14 +00:00
[Hotfix] Steal-able Mini Black Hole Pt 2 (#3632)
* Still have no idea where Eternatus is given the MBH.... * typedocs --------- Co-authored-by: frutescens <info@laptop>
This commit is contained in:
parent
1db26dab96
commit
a46e35b8dd
@ -2419,13 +2419,7 @@ 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 => {
|
||||
const enemyModifier = mt.newModifier(enemyPokemon);
|
||||
if (enemyModifier instanceof TurnHeldItemTransferModifier) {
|
||||
enemyModifier.setTransferrableFalse();
|
||||
}
|
||||
enemyModifier.add(this.enemyModifiers, false, this);
|
||||
});
|
||||
.map(mt => mt.newModifier(enemyPokemon).add(this.enemyModifiers, false, this));
|
||||
});
|
||||
this.updateModifiers(false).then(() => resolve());
|
||||
});
|
||||
|
@ -878,6 +878,10 @@ export class EncounterPhase extends BattlePhase {
|
||||
} else if (!(battle.waveIndex % 1000)) {
|
||||
enemyPokemon.formIndex = 1;
|
||||
enemyPokemon.updateScale();
|
||||
const bossMBH = this.scene.findModifier(m => m instanceof TurnHeldItemTransferModifier && m.pokemonId === enemyPokemon.id, false) as TurnHeldItemTransferModifier;
|
||||
this.scene.removeModifier(bossMBH!);
|
||||
bossMBH?.setTransferrableFalse();
|
||||
this.scene.addEnemyModifier(bossMBH!);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user