mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-26 02:02:20 +02:00
F button does not show up if there is only one obtainable form
This commit is contained in:
parent
b873ab104c
commit
c641863ea7
@ -1961,7 +1961,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
this.setTypeIcons(null, null);
|
||||
}
|
||||
|
||||
if (species?.forms?.length > 1) {
|
||||
if (species?.forms?.filter(f => !f.isUnobtainable).length > 1) {
|
||||
if (!this.showingTray) {
|
||||
this.showFormTrayIconElement.setVisible(true);
|
||||
this.showFormTrayLabel.setVisible(true);
|
||||
|
Loading…
Reference in New Issue
Block a user