mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 05:12:19 +02:00
Add TSDocs
This commit is contained in:
parent
1bac75f29b
commit
53ed8b9f96
@ -2690,8 +2690,16 @@ export class IgnoreTypeStatusEffectImmunityAbAttr extends AbAttr {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Abstract class for aura effects. Aura effects apply tags
|
||||
* to a list of targets and keeps reapplying them as long
|
||||
* as the aura source is active.
|
||||
*/
|
||||
export abstract class AuraAbAttr extends AbAttr { }
|
||||
|
||||
/**
|
||||
* Damage reduction aura triggered by {@linkcode Abilities.FRIEND_GUARD}.
|
||||
*/
|
||||
export class FriendGuardAbAttr extends AuraAbAttr {
|
||||
apply(pokemon: Pokemon, passive: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean {
|
||||
const ally = pokemon.getAlly();
|
||||
|
@ -1276,6 +1276,11 @@ export class CursedTag extends BattlerTag {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Abstract class for aura tag effects. Lapse is triggered
|
||||
* at the start of move phase. Tag is active as long
|
||||
* as the its source is active.
|
||||
*/
|
||||
export abstract class AuraTag extends BattlerTag {
|
||||
constructor(tagType: BattlerTagType, sourceId: number) {
|
||||
super(tagType, BattlerTagLapseType.CUSTOM, 0, undefined, sourceId);
|
||||
@ -1287,6 +1292,9 @@ export abstract class AuraTag extends BattlerTag {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tag that reduces received damage. Applied during pre-defend.
|
||||
*/
|
||||
export class ReceivedMoveDamageMultiplierTag extends AuraTag {
|
||||
public powerMultiplier: number;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user