Z-A OU: Fix removal of Zygardite in battle (#11520)

This commit is contained in:
André Bastos Dias 2025-10-22 15:32:54 +01:00 committed by GitHub
parent 0ef2d38ac3
commit 44ded79364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,4 +33,12 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
inherit: true,
isNonstandard: "Unobtainable",
},
zygardite: {
inherit: true,
onTakeItem(item, source) {
if ((source.baseSpecies.baseSpecies === 'Zygarde' && source.baseAbility === 'powerconstruct') ||
source.baseSpecies.name === 'Zygarde-Mega') return false;
return true;
},
},
};