This commit is contained in:
Lylian 2024-08-19 22:51:07 +02:00
parent 20295da912
commit 62865efe8e

View File

@ -4112,10 +4112,7 @@ export class IllusionPreSummonAbAttr extends PreSummonAbAttr {
applyPreSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean { applyPreSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean {
let suppressed = false; let suppressed = false;
pokemon.scene.getField(true).filter(p => p !== pokemon).map(p => { pokemon.scene.getField(true).filter(p => p !== pokemon).map(p => {
if (p.getAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility()) { if ((p.getAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility()) || (p.getPassiveAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility(true))) {
suppressed = true;
}
if (p.getPassiveAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility(true)) {
suppressed = true; suppressed = true;
} }
}); });