Add starter select ability selection
This commit is contained in:
1 parent
bb86ab6250
commit
592ccc7c6a
9 files changed
+190
-47
No files matched your search
@@ -435,7 +435,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
if (this.pokemon.species.type2)
|
||||
profileContainer.add(getTypeIcon(1, this.pokemon.species.type2));
|
||||
|
||||
const ability = abilities[this.pokemon.species[`ability${!this.pokemon.abilityIndex ? '1' : '2'}`]];
|
||||
const ability = abilities[this.pokemon.species.getAbility(this.pokemon.abilityIndex)];
|
||||
|
||||
const abilityNameText = addTextObject(this.scene, 7, 66, ability.name.toUpperCase(), TextStyle.SUMMARY);
|
||||
abilityNameText.setOrigin(0, 1);
|
||||
|
||||
Reference in new issue
Block a user