mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 08:46:55 +00:00
disables final boss passive (#3393)
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
This commit is contained in:
parent
b54a255c15
commit
ba9378d1d8
@ -1081,6 +1081,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
(Overrides.OPP_PASSIVE_ABILITY_OVERRIDE !== Abilities.NONE && !this.isPlayer())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Final boss does not have passive
|
||||
if (this.scene.currentBattle?.battleSpec === BattleSpec.FINAL_BOSS && this instanceof EnemyPokemon) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.passive || this.isBoss();
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,14 @@ describe("Final Boss", () => {
|
||||
expect(game.scene.getEnemyPokemon()!.species.speciesId).not.toBe(Species.ETERNATUS);
|
||||
});
|
||||
|
||||
it("should not have passive enabled on Eternatus", async () => {
|
||||
await runToFinalBossEncounter(game, [Species.BIDOOF]);
|
||||
|
||||
const eternatus = game.scene.getEnemyPokemon();
|
||||
expect(eternatus.species.speciesId).toBe(Species.ETERNATUS);
|
||||
expect(eternatus.hasPassive()).toBe(false);
|
||||
});
|
||||
|
||||
it.todo("should change form on direct hit down to last boss fragment", () => {});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user