mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
fix for [Bug] Moves That a Pokemon Knows and are not in their List of Learnable TMs Display as "Not Able" Rather than Learned #3930
This commit is contained in:
parent
ce0ba3fbf9
commit
03c0afc39d
@ -1318,12 +1318,12 @@ class PartySlot extends Phaser.GameObjects.Container {
|
||||
this.slotHpText.setVisible(false);
|
||||
let slotTmText: string;
|
||||
switch (true) {
|
||||
case (this.pokemon.compatibleTms.indexOf(tmMoveId) === -1):
|
||||
slotTmText = i18next.t("partyUiHandler:notAble");
|
||||
break;
|
||||
case (this.pokemon.getMoveset().filter(m => m?.moveId === tmMoveId).length > 0):
|
||||
slotTmText = i18next.t("partyUiHandler:learned");
|
||||
break;
|
||||
case (this.pokemon.compatibleTms.indexOf(tmMoveId) === -1):
|
||||
slotTmText = i18next.t("partyUiHandler:notAble");
|
||||
break;
|
||||
default:
|
||||
slotTmText = i18next.t("partyUiHandler:able");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user