Trainers switch out their Pokemon when at a disadvantage

This commit is contained in:
Flashfyre committed 2024-01-15 00:20:35 -05:00
1 parent f49a3e5127
commit 8c4f336cd6
4 files changed
+66 -9

No files matched your search

+4
View File
@@ -1737,6 +1737,10 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
return (!player && !user.scene.currentBattle.battleType) || party.filter(p => !p.isFainted()).length > user.scene.currentBattle.getBattlerCount();
};
}
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
return -100; // Overridden in switch logic
}
}
export class CopyTypeAttr extends MoveEffectAttr {