From 169095f1fb182e34b3b24ac134f0a5825bef0814 Mon Sep 17 00:00:00 2001 From: innerthunder Date: Fri, 15 Nov 2024 01:33:25 -0800 Subject: [PATCH] Update docs --- src/data/battler-tags.ts | 5 +++++ src/modifier/modifier.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 4aad40e7651..63effb3be64 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -1502,6 +1502,11 @@ export class ContactBurnProtectedTag extends DamageProtectedTag { } } +/** + * `BattlerTag` class for effects that cause the affected Pokemon to survive lethal attacks at 1 HP. + * Used for {@link https://bulbapedia.bulbagarden.net/wiki/Endure_(move) | Endure} and + * Endure Tokens. + */ export class EnduringTag extends BattlerTag { constructor(tagType: BattlerTagType, lapseType: BattlerTagLapseType, sourceMove: Moves) { super(tagType, lapseType, 0, sourceMove); diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 6ef7b422abf..d18f0d7f56f 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -3647,8 +3647,8 @@ export class EnemyEndureChanceModifier extends EnemyPersistentModifier { } /** - * Applies {@linkcode EnemyEndureChanceModifier} - * @param target {@linkcode Pokemon} to apply the {@linkcode BattlerTagType.ENDURING} chance to + * Applies a chance of enduring a lethal hit of an attack + * @param target the {@linkcode Pokemon} to apply the {@linkcode BattlerTagType.ENDURING} chance to * @returns `true` if {@linkcode Pokemon} endured */ override apply(target: Pokemon): boolean {