fixed syntax inconsistency

This commit is contained in:
muscode13 2024-10-26 11:58:34 -06:00
parent 102c4916b6
commit 34bf97a65f

View File

@ -4950,7 +4950,7 @@ export class PostDamageForceSwitchAttr extends PostDamageAbAttr {
if (pokemon.hp + damage >= pokemon.getMaxHp() * this.hpRatio) { if (pokemon.hp + damage >= pokemon.getMaxHp() * this.hpRatio) {
// Activates if it falls below half and recovers back above half from a Shell Bell // Activates if it falls below half and recovers back above half from a Shell Bell
const shellBellHeal = calculateShellBellRecovery(pokemon); const shellBellHeal = calculateShellBellRecovery(pokemon);
if (pokemon.hp - shellBellHeal < pokemon.getMaxHp() / 2) { if (pokemon.hp - shellBellHeal < pokemon.getMaxHp() * this.hpRatio) {
for (const opponent of pokemon.getOpponents()) { for (const opponent of pokemon.getOpponents()) {
if (!this.helper.getSwitchOutCondition(pokemon, opponent)) { if (!this.helper.getSwitchOutCondition(pokemon, opponent)) {
return false; return false;