mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
simplified test condition further
This commit is contained in:
parent
e68044436f
commit
65183d6eb9
@ -2274,7 +2274,7 @@ export class MatchUserTypeAttr extends VariableMoveTypeAttr {
|
||||
|
||||
const userTypes = user.getTypes(true);
|
||||
|
||||
if(userTypes.length > 0 && userTypes.includes(Type.STELLAR)) { // will not change to stellar type
|
||||
if(userTypes.includes(Type.STELLAR)) { // will not change to stellar type
|
||||
const nonTeraTypes = user.getTypes();
|
||||
type.value = nonTeraTypes[0];
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user