Removed the additional indents
parent
f0c2e62883
commit
4269c27b9c
|
|
@ -2477,10 +2477,10 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
// Check if the move category is not STATUS or if the switch out condition is not met
|
// Check if the move category is not STATUS or if the switch out condition is not met
|
||||||
if (move.category !== MoveCategory.STATUS && !this.getSwitchOutCondition()(user, target, move)) {
|
if (move.category !== MoveCategory.STATUS && !this.getSwitchOutCondition()(user, target, move)) {
|
||||||
// Apply effects that need to be executed before switch out
|
//Apply effects that need to be executed before switch out
|
||||||
// For example, applying poison or any other status condition
|
//For example, applying poison or any other status condition
|
||||||
this.applyEffectsBeforeSwitchOut(user, target, move);
|
this.applyEffectsBeforeSwitchOut(user, target, move);
|
||||||
// Resolve the Promise after the switch out is complete
|
//Resolve the Promise after the switch out is complete
|
||||||
return resolve(false);
|
return resolve(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue