Removing redundant .leaveField() calls

This commit is contained in:
Wlowscha 2025-02-20 09:08:11 +01:00
parent b057fcd715
commit de47693a9d
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
2 changed files with 0 additions and 5 deletions

View File

@ -4921,7 +4921,6 @@ class ForceSwitchOutHelper {
}
if (switchOutTarget.hp > 0) {
switchOutTarget.leaveField(this.switchType === SwitchType.SWITCH);
globalScene.prependToPhase(new SwitchPhase(this.switchType, switchOutTarget.getFieldIndex(), true, true), MoveEndPhase);
return true;
}

View File

@ -6122,7 +6122,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
if (switchOutTarget.hp > 0) {
if (this.switchType === SwitchType.FORCE_SWITCH) {
switchOutTarget.leaveField(true);
const slotIndex = eligibleNewIndices[user.randSeedInt(eligibleNewIndices.length)];
globalScene.prependToPhase(
new SwitchSummonPhase(
@ -6135,7 +6134,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
MoveEndPhase
);
} else {
switchOutTarget.leaveField(this.switchType === SwitchType.SWITCH);
globalScene.prependToPhase(
new SwitchPhase(
this.switchType,
@ -6164,7 +6162,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
if (switchOutTarget.hp > 0) {
if (this.switchType === SwitchType.FORCE_SWITCH) {
switchOutTarget.leaveField(true);
const slotIndex = eligibleNewIndices[user.randSeedInt(eligibleNewIndices.length)];
globalScene.prependToPhase(
new SwitchSummonPhase(
@ -6177,7 +6174,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
MoveEndPhase
);
} else {
switchOutTarget.leaveField(this.switchType === SwitchType.SWITCH);
globalScene.prependToPhase(
new SwitchSummonPhase(
this.switchType,