fix other move that might get the illusion type as well

This commit is contained in:
Lylian 2025-05-04 23:23:06 +02:00
parent 4ca0f6ea4a
commit 426b56a847

View File

@ -6485,7 +6485,7 @@ export class RemoveTypeAttr extends MoveEffectAttr {
return false;
}
const userTypes = user.getTypes(true);
const userTypes = user.getTypes(true, false, undefined, false);
const modifiedTypes = userTypes.filter(type => type !== this.removedType);
if (modifiedTypes.length === 0) {
modifiedTypes.push(PokemonType.UNKNOWN);