Bosses can heal through broken segments

This commit is contained in:
Flashfyre 2024-02-20 12:05:25 -05:00
parent 0fa5d84af6
commit be122f4f08
1 changed files with 2 additions and 1 deletions

View File

@ -2381,7 +2381,8 @@ export class EnemyPokemon extends Pokemon {
const healAmount = Math.min(amount, this.getMaxHp() - this.hp, Math.round(hpThreshold + (segmentSize * segmentBypassCount) - this.hp));
this.hp += healAmount;
return healAmount;
}
} else if (s >= this.bossSegmentIndex)
return super.heal(amount);
}
}