mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 13:22:18 +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 { }
|
export abstract class AuraAbAttr extends AbAttr { }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Damage reduction aura triggered by {@linkcode Abilities.FRIEND_GUARD}.
|
||||||
|
*/
|
||||||
export class FriendGuardAbAttr extends AuraAbAttr {
|
export class FriendGuardAbAttr extends AuraAbAttr {
|
||||||
apply(pokemon: Pokemon, passive: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean {
|
apply(pokemon: Pokemon, passive: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean {
|
||||||
const ally = pokemon.getAlly();
|
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 {
|
export abstract class AuraTag extends BattlerTag {
|
||||||
constructor(tagType: BattlerTagType, sourceId: number) {
|
constructor(tagType: BattlerTagType, sourceId: number) {
|
||||||
super(tagType, BattlerTagLapseType.CUSTOM, 0, undefined, sourceId);
|
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 {
|
export class ReceivedMoveDamageMultiplierTag extends AuraTag {
|
||||||
public powerMultiplier: number;
|
public powerMultiplier: number;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user