[Balance] Trainer boss Pokémon no longer gain a stat boost when a boss segment is broken #6552

Trainer boss Pokémon no longer gain a stat boost when a boss segment is broken
This commit is contained in:
Sirz Benjie 2025-09-13 15:21:24 -05:00 committed by GitHub
parent e233f24526
commit 3ed6a9a960
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6909,7 +6909,7 @@ export class EnemyPokemon extends Pokemon {
const segmentSize = this.getMaxHp() / this.bossSegments; const segmentSize = this.getMaxHp() / this.bossSegments;
clearedBossSegmentIndex = Math.ceil(this.hp / segmentSize); clearedBossSegmentIndex = Math.ceil(this.hp / segmentSize);
} }
if (clearedBossSegmentIndex <= this.bossSegmentIndex) { if (clearedBossSegmentIndex <= this.bossSegmentIndex && !this.hasTrainer()) {
this.handleBossSegmentCleared(clearedBossSegmentIndex); this.handleBossSegmentCleared(clearedBossSegmentIndex);
} }
this.battleInfo.updateBossSegments(this); this.battleInfo.updateBossSegments(this);