mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Address Phase integers
This commit is contained in:
parent
db9925ec0f
commit
1f130f85a7
@ -414,9 +414,9 @@ export class TypeImmunityHealAbAttr extends TypeImmunityAbAttr {
|
|||||||
|
|
||||||
class TypeImmunityStatStageChangeAbAttr extends TypeImmunityAbAttr {
|
class TypeImmunityStatStageChangeAbAttr extends TypeImmunityAbAttr {
|
||||||
private stat: BattleStat;
|
private stat: BattleStat;
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(immuneType: Type, stat: BattleStat, stages: integer, condition?: AbAttrCondition) {
|
constructor(immuneType: Type, stat: BattleStat, stages: number, condition?: AbAttrCondition) {
|
||||||
super(immuneType, condition);
|
super(immuneType, condition);
|
||||||
|
|
||||||
this.stat = stat;
|
this.stat = stat;
|
||||||
@ -643,9 +643,9 @@ export class WonderSkinAbAttr extends PreDefendAbAttr {
|
|||||||
|
|
||||||
export class MoveImmunityStatStageChangeAbAttr extends MoveImmunityAbAttr {
|
export class MoveImmunityStatStageChangeAbAttr extends MoveImmunityAbAttr {
|
||||||
private stat: BattleStat;
|
private stat: BattleStat;
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(immuneCondition: PreDefendAbAttrCondition, stat: BattleStat, stages: integer) {
|
constructor(immuneCondition: PreDefendAbAttrCondition, stat: BattleStat, stages: number) {
|
||||||
super(immuneCondition);
|
super(immuneCondition);
|
||||||
this.stat = stat;
|
this.stat = stat;
|
||||||
this.stages = stages;
|
this.stages = stages;
|
||||||
@ -693,11 +693,11 @@ export class ReverseDrainAbAttr extends PostDefendAbAttr {
|
|||||||
export class PostDefendStatStageChangeAbAttr extends PostDefendAbAttr {
|
export class PostDefendStatStageChangeAbAttr extends PostDefendAbAttr {
|
||||||
private condition: PokemonDefendCondition;
|
private condition: PokemonDefendCondition;
|
||||||
private stat: BattleStat;
|
private stat: BattleStat;
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
private selfTarget: boolean;
|
private selfTarget: boolean;
|
||||||
private allOthers: boolean;
|
private allOthers: boolean;
|
||||||
|
|
||||||
constructor(condition: PokemonDefendCondition, stat: BattleStat, stages: integer, selfTarget: boolean = true, allOthers: boolean = false) {
|
constructor(condition: PokemonDefendCondition, stat: BattleStat, stages: number, selfTarget: boolean = true, allOthers: boolean = false) {
|
||||||
super(true);
|
super(true);
|
||||||
|
|
||||||
this.condition = condition;
|
this.condition = condition;
|
||||||
@ -728,10 +728,10 @@ export class PostDefendHpGatedStatStageChangeAbAttr extends PostDefendAbAttr {
|
|||||||
private condition: PokemonDefendCondition;
|
private condition: PokemonDefendCondition;
|
||||||
private hpGate: number;
|
private hpGate: number;
|
||||||
private stats: BattleStat[];
|
private stats: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
private selfTarget: boolean;
|
private selfTarget: boolean;
|
||||||
|
|
||||||
constructor(condition: PokemonDefendCondition, hpGate: number, stats: BattleStat[], stages: integer, selfTarget: boolean = true) {
|
constructor(condition: PokemonDefendCondition, hpGate: number, stats: BattleStat[], stages: number, selfTarget: boolean = true) {
|
||||||
super(true);
|
super(true);
|
||||||
|
|
||||||
this.condition = condition;
|
this.condition = condition;
|
||||||
@ -901,7 +901,7 @@ export class PostDefendCritStatStageChangeAbAttr extends PostDefendAbAttr {
|
|||||||
private stat: BattleStat;
|
private stat: BattleStat;
|
||||||
private stages: integer;
|
private stages: integer;
|
||||||
|
|
||||||
constructor(stat: BattleStat, stages: integer) {
|
constructor(stat: BattleStat, stages: number) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.stat = stat;
|
this.stat = stat;
|
||||||
@ -1085,9 +1085,9 @@ export class PostDefendMoveDisableAbAttr extends PostDefendAbAttr {
|
|||||||
export class PostStatStageChangeStatStageChangeAbAttr extends PostStatStageChangeAbAttr {
|
export class PostStatStageChangeStatStageChangeAbAttr extends PostStatStageChangeAbAttr {
|
||||||
private condition: PokemonStatStageChangeCondition;
|
private condition: PokemonStatStageChangeCondition;
|
||||||
private statsToChange: BattleStat[];
|
private statsToChange: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(condition: PokemonStatStageChangeCondition, statsToChange: BattleStat[], stages: integer) {
|
constructor(condition: PokemonStatStageChangeCondition, statsToChange: BattleStat[], stages: number) {
|
||||||
super(true);
|
super(true);
|
||||||
|
|
||||||
this.condition = condition;
|
this.condition = condition;
|
||||||
@ -1739,9 +1739,9 @@ export class PostVictoryAbAttr extends AbAttr {
|
|||||||
|
|
||||||
class PostVictoryStatStageChangeAbAttr extends PostVictoryAbAttr {
|
class PostVictoryStatStageChangeAbAttr extends PostVictoryAbAttr {
|
||||||
private stat: BattleStat | ((p: Pokemon) => BattleStat);
|
private stat: BattleStat | ((p: Pokemon) => BattleStat);
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(stat: BattleStat | ((p: Pokemon) => BattleStat), stages: integer) {
|
constructor(stat: BattleStat | ((p: Pokemon) => BattleStat), stages: number) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.stat = stat;
|
this.stat = stat;
|
||||||
@ -1786,9 +1786,9 @@ export class PostKnockOutAbAttr extends AbAttr {
|
|||||||
|
|
||||||
export class PostKnockOutStatStageChangeAbAttr extends PostKnockOutAbAttr {
|
export class PostKnockOutStatStageChangeAbAttr extends PostKnockOutAbAttr {
|
||||||
private stat: BattleStat | ((p: Pokemon) => BattleStat);
|
private stat: BattleStat | ((p: Pokemon) => BattleStat);
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(stat: BattleStat | ((p: Pokemon) => BattleStat), stages: integer) {
|
constructor(stat: BattleStat | ((p: Pokemon) => BattleStat), stages: number) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.stat = stat;
|
this.stat = stat;
|
||||||
@ -1875,10 +1875,10 @@ export class IntimidateImmunityAbAttr extends AbAttr {
|
|||||||
|
|
||||||
export class PostIntimidateStatStageChangeAbAttr extends AbAttr {
|
export class PostIntimidateStatStageChangeAbAttr extends AbAttr {
|
||||||
private stats: BattleStat[];
|
private stats: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
private overwrites: boolean;
|
private overwrites: boolean;
|
||||||
|
|
||||||
constructor(stats: BattleStat[], stages: integer, overwrites?: boolean) {
|
constructor(stats: BattleStat[], stages: number, overwrites?: boolean) {
|
||||||
super(true);
|
super(true);
|
||||||
this.stats = stats;
|
this.stats = stats;
|
||||||
this.stages = stages;
|
this.stages = stages;
|
||||||
@ -1982,11 +1982,11 @@ export class PostSummonAddBattlerTagAbAttr extends PostSummonAbAttr {
|
|||||||
|
|
||||||
export class PostSummonStatStageChangeAbAttr extends PostSummonAbAttr {
|
export class PostSummonStatStageChangeAbAttr extends PostSummonAbAttr {
|
||||||
private stats: BattleStat[];
|
private stats: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
private selfTarget: boolean;
|
private selfTarget: boolean;
|
||||||
private intimidate: boolean;
|
private intimidate: boolean;
|
||||||
|
|
||||||
constructor(stats: BattleStat[], stages: integer, selfTarget?: boolean, intimidate?: boolean) {
|
constructor(stats: BattleStat[], stages: number, selfTarget?: boolean, intimidate?: boolean) {
|
||||||
super(false);
|
super(false);
|
||||||
|
|
||||||
this.stats = stats;
|
this.stats = stats;
|
||||||
@ -3245,9 +3245,9 @@ export class MoodyAbAttr extends PostTurnAbAttr {
|
|||||||
|
|
||||||
export class PostTurnStatStageChangeAbAttr extends PostTurnAbAttr {
|
export class PostTurnStatStageChangeAbAttr extends PostTurnAbAttr {
|
||||||
private stats: BattleStat[];
|
private stats: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(stats: BattleStat[], stages: integer) {
|
constructor(stats: BattleStat[], stages: number) {
|
||||||
super(true);
|
super(true);
|
||||||
|
|
||||||
this.stats = Array.isArray(stats)
|
this.stats = Array.isArray(stats)
|
||||||
@ -3800,9 +3800,9 @@ export class FlinchEffectAbAttr extends AbAttr {
|
|||||||
|
|
||||||
export class FlinchStatStageChangeAbAttr extends FlinchEffectAbAttr {
|
export class FlinchStatStageChangeAbAttr extends FlinchEffectAbAttr {
|
||||||
private stats: BattleStat[];
|
private stats: BattleStat[];
|
||||||
private stages: integer;
|
private stages: number;
|
||||||
|
|
||||||
constructor(stats: BattleStat[], stages: integer) {
|
constructor(stats: BattleStat[], stages: number) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.stats = Array.isArray(stats)
|
this.stats = Array.isArray(stats)
|
||||||
|
Loading…
Reference in New Issue
Block a user