mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
fixed syntax inconsistency
This commit is contained in:
parent
102c4916b6
commit
34bf97a65f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user