mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 02:39:38 -05:00
Multibility: Fix item-Abilities
This commit is contained in:
parent
715c0706e6
commit
4c9aaee506
|
|
@ -742,7 +742,13 @@ export const Formats: FormatList = [
|
|||
getItem() {
|
||||
const ability = this.battle.dex.abilities.get(this.battle.toID(this.item));
|
||||
if (!ability.exists) return Object.getPrototypeOf(this).getItem.call(this);
|
||||
return {...ability, onTakeItem: false};
|
||||
return {
|
||||
id: ability.id,
|
||||
name: ability.name,
|
||||
toString() {
|
||||
return "";
|
||||
},
|
||||
};
|
||||
},
|
||||
hasItem(item) {
|
||||
const ownItem = this.item;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user