mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 02:06:07 +00:00
[Hotfix] Prevent bosses from being forced to flee by Dragon Tail/etc (#4478)
This commit is contained in:
parent
2e7f6a2f4f
commit
c9664b66d3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user