mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +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);
|
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();
|
const nonTeraTypes = user.getTypes();
|
||||||
type.value = nonTeraTypes[0];
|
type.value = nonTeraTypes[0];
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user