mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
Add Destiny Bond, remove GroundedTag
and ExposedTag
This commit is contained in:
parent
ad93788115
commit
d1a0949c43
@ -372,7 +372,7 @@ export class ConfusedTag extends BattlerTag {
|
|||||||
*/
|
*/
|
||||||
export class DestinyBondTag extends BattlerTag {
|
export class DestinyBondTag extends BattlerTag {
|
||||||
constructor(sourceMove: Moves, sourceId: number) {
|
constructor(sourceMove: Moves, sourceId: number) {
|
||||||
super(BattlerTagType.DESTINY_BOND, BattlerTagLapseType.PRE_MOVE, 1, sourceMove, sourceId);
|
super(BattlerTagType.DESTINY_BOND, BattlerTagLapseType.PRE_MOVE, 1, sourceMove, sourceId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1605,7 +1605,7 @@ export class CursedTag extends BattlerTag {
|
|||||||
*/
|
*/
|
||||||
export class GroundedTag extends BattlerTag {
|
export class GroundedTag extends BattlerTag {
|
||||||
constructor(tagType: BattlerTagType, lapseType: BattlerTagLapseType, sourceMove: Moves) {
|
constructor(tagType: BattlerTagType, lapseType: BattlerTagLapseType, sourceMove: Moves) {
|
||||||
super(tagType, lapseType, 1, sourceMove, undefined, true);
|
super(tagType, lapseType, 1, sourceMove);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1804,7 +1804,7 @@ export class ExposedTag extends BattlerTag {
|
|||||||
private allowedTypes: Type[];
|
private allowedTypes: Type[];
|
||||||
|
|
||||||
constructor(tagType: BattlerTagType, sourceMove: Moves, defenderType: Type, allowedTypes: Type[]) {
|
constructor(tagType: BattlerTagType, sourceMove: Moves, defenderType: Type, allowedTypes: Type[]) {
|
||||||
super(tagType, BattlerTagLapseType.CUSTOM, 1, sourceMove, undefined, true);
|
super(tagType, BattlerTagLapseType.CUSTOM, 1, sourceMove);
|
||||||
this.defenderType = defenderType;
|
this.defenderType = defenderType;
|
||||||
this.allowedTypes = allowedTypes;
|
this.allowedTypes = allowedTypes;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user