mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const userTypes = user.getTypes(true);
|
const userTypes = user.getTypes(true, false, undefined, false);
|
||||||
const modifiedTypes = userTypes.filter(type => type !== this.removedType);
|
const modifiedTypes = userTypes.filter(type => type !== this.removedType);
|
||||||
if (modifiedTypes.length === 0) {
|
if (modifiedTypes.length === 0) {
|
||||||
modifiedTypes.push(PokemonType.UNKNOWN);
|
modifiedTypes.push(PokemonType.UNKNOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user