Removed the rest of the indents
parent
ace72111de
commit
d4cc2c7a2b
|
|
@ -2535,15 +2535,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to apply any effects to the user/target before switching out
|
|
||||||
applyEffectsBeforeSwitchOut(user: Pokemon, target: Pokemon, move: Move) {
|
|
||||||
// Create an instance of PostDefendContactApplyStatusEffectAbAttr
|
|
||||||
const postDefendAttr = new PostDefendContactApplyStatusEffectAbAttr();
|
|
||||||
|
|
||||||
// Apply the effects based on the logic in PostDefendContactApplyStatusEffectAbAttr
|
|
||||||
postDefendAttr.applyPostDefend(user, target, move);
|
|
||||||
}
|
|
||||||
|
|
||||||
getCondition(): MoveConditionFunc {
|
getCondition(): MoveConditionFunc {
|
||||||
return (user, target, move) => move.category !== MoveCategory.STATUS || this.getSwitchOutCondition()(user, target, move);
|
return (user, target, move) => move.category !== MoveCategory.STATUS || this.getSwitchOutCondition()(user, target, move);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue