Endure updated

This commit is contained in:
Matthew authored and Samuel H committed 2024-04-05 18:50:10 -04:00
1 parent e2a49ffa25
commit 5b2925cf85
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1272,7 +1272,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (this.isFainted())
return 0;
if (this.hp > 1 && this.hp - damage <= 0 && !preventEndure) {
if (this.hp >= 1 && this.hp - damage <= 0 && !preventEndure) {
const surviveDamage = new Utils.BooleanHolder(false);
if (this.lapseTag(BattlerTagType.ENDURING))
surviveDamage.value = true;