fix revelation dance using the type of the illusion instead of the actual type

This commit is contained in:
Lylian 2025-05-04 22:50:08 +02:00
parent 1042b528ec
commit 91fb7a47b5

View File

@ -5154,7 +5154,7 @@ export class MatchUserTypeAttr extends VariableMoveTypeAttr {
if (!(moveType instanceof NumberHolder)) { if (!(moveType instanceof NumberHolder)) {
return false; return false;
} }
const userTypes = user.getTypes(true); const userTypes = user.getTypes(true, false, undefined, false);
if (userTypes.includes(PokemonType.STELLAR)) { // will not change to stellar type if (userTypes.includes(PokemonType.STELLAR)) { // will not change to stellar type
const nonTeraTypes = user.getTypes(); const nonTeraTypes = user.getTypes();