mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02:18 +02:00
Add docs
This commit is contained in:
parent
4bfea8f514
commit
f1450e9a67
@ -1172,6 +1172,12 @@ export class IgnoreTypeImmunityTag extends BattlerTag {
|
|||||||
return lapseType !== BattlerTagLapseType.CUSTOM || super.lapse(pokemon, lapseType);
|
return lapseType !== BattlerTagLapseType.CUSTOM || super.lapse(pokemon, lapseType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param types {@linkcode Type[]} of the Pokemon
|
||||||
|
* @param moveType {@linkcode Type} of the move targetting it
|
||||||
|
* @returns true if Pokemon is of tag's type and is immune to the move
|
||||||
|
*/
|
||||||
ignoreImmunity(types: Type[], moveType: Type): boolean {
|
ignoreImmunity(types: Type[], moveType: Type): boolean {
|
||||||
return types.includes(this.immuneType)
|
return types.includes(this.immuneType)
|
||||||
&& getTypeDamageMultiplier(moveType, this.immuneType) == 0;
|
&& getTypeDamageMultiplier(moveType, this.immuneType) == 0;
|
||||||
|
@ -3431,18 +3431,26 @@ export class FaintCountdownAttr extends AddBattlerTagAttr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Drops the target's immunity to types it is immune to
|
||||||
|
* and resets its evasiveness ie. Odor Sleuth, Miracle Eye,
|
||||||
|
* Foresight.
|
||||||
|
*
|
||||||
|
* @extends AddBattlerTagAttr
|
||||||
|
* @see {@linkcode apply}
|
||||||
|
*/
|
||||||
export class ExposedMoveAttr extends AddBattlerTagAttr {
|
export class ExposedMoveAttr extends AddBattlerTagAttr {
|
||||||
constructor(tagType: BattlerTagType) {
|
constructor(tagType: BattlerTagType) {
|
||||||
super(tagType, false, true);
|
super(tagType, false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves that reset the target's evasiveness and makes it vulnerable
|
* Resets the target's evasiveness and applies the
|
||||||
* to types it is immune to.
|
* {@linkcode IgnoreTypeImmunityTag}
|
||||||
* @param user Pokemon that used the move
|
* @param user {@linkcode Pokemon} using this move
|
||||||
* @param target The target of the move
|
* @param target {@linkcode Pokemon} target of this move
|
||||||
* @param move Move with this attribute
|
* @param move {@linkcode Move} being used
|
||||||
* @param args None
|
* @param args N/A
|
||||||
* @returns true if the function succeeds
|
* @returns true if the function succeeds
|
||||||
*/
|
*/
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user