mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Removed the rest of the indents
This commit is contained in:
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
Block a user