mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
fix other move that might get the illusion type as well
This commit is contained in:
parent
4ca0f6ea4a
commit
426b56a847
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user