[Hotfix] Prevent bosses from being forced to flee by Dragon Tail/etc (#4478)

This commit is contained in:
NightKev 2024-09-27 18:26:19 -07:00 committed by GitHub
parent 2e7f6a2f4f
commit c9664b66d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5244,6 +5244,9 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
false, false), MoveEndPhase);
}
} else {
if (switchOutTarget.isBoss()) {
return false;
}
// Switch out logic for everything else (eg: WILD battles)
switchOutTarget.leaveField(false);