Move U-turn fix to another PR

pull/231/head
AJ Fontaine 2024-05-08 01:44:26 -04:00 committed by GitHub
parent b5c6854854
commit 19d1f7bea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -3110,9 +3110,6 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
if (!player && !user.scene.currentBattle.battleType) {
if (this.batonPass)
return false;
//U-turn et al should not switch a wild mon out, including status moves that don't target the user, but a player's Dragon Tail can
if (this.user && (move.category !== MoveCategory.STATUS || move.moveTarget !== MoveTarget.USER))
return false;
// Don't allow wild opponents to flee on the boss stage since it can ruin a run early on
if (!(user.scene.currentBattle.waveIndex % 10))
return false;