From 38b4d3ddc899f281923292d7a6368b6c28a9c560 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:15:03 -0700 Subject: [PATCH] Add tsdocs for new/modified classes --- src/data/battler-tags.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 4022db66f6f..413908a1a7d 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -1298,8 +1298,10 @@ export class ProtectedTag extends BattlerTag { } } +/** Base class for `BattlerTag`s that block damaging moves but not status moves */ export class DamageProtectedTag extends ProtectedTag {} +/** `BattlerTag` class for moves that block damaging moves damage the enemy if the enemy's move makes contact */ export class ContactDamageProtectedTag extends ProtectedTag { private damageRatio: number; @@ -1335,6 +1337,7 @@ export class ContactDamageProtectedTag extends ProtectedTag { } } +/** `BattlerTag` class for moves that block damaging moves and lower enemy stats if the enemy's move makes contact */ export class ContactStatStageChangeProtectedTag extends DamageProtectedTag { private stat: BattleStat; private levels: number; @@ -1391,6 +1394,7 @@ export class ContactPoisonProtectedTag extends ProtectedTag { } } +/** `BattlerTag` class for moves that block damaging moves and burn the enemy if the enemy's move makes contact */ export class ContactBurnProtectedTag extends DamageProtectedTag { constructor(sourceMove: Moves) { super(sourceMove, BattlerTagType.BURNING_BULWARK);