mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-21 09:15:25 +00:00
Bosses can heal through broken segments
This commit is contained in:
parent
0fa5d84af6
commit
be122f4f08
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user