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