Update src/data/move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
innerthunder 2024-09-12 16:32:39 -07:00 committed by GitHub
parent ee2c630abd
commit e234bb8546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5099,7 +5099,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
const switchOutTarget = (this.user ? user : target); const switchOutTarget = (this.user ? user : target);
const player = switchOutTarget instanceof PlayerPokemon; const player = switchOutTarget instanceof PlayerPokemon;
if (!this.user && move.category === MoveCategory.STATUS && (target.hasAbilityWithAttr(ForceSwitchOutImmunityAbAttr))) { if (!this.user && move.category === MoveCategory.STATUS && target.hasAbilityWithAttr(ForceSwitchOutImmunityAbAttr)) {
return false; return false;
} }