Update src/data/ability.ts

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
This commit is contained in:
Lylian BALL 2025-03-31 11:23:39 +02:00 committed by GitHub
parent 2b6c05d06d
commit 759a317a90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2371,9 +2371,9 @@ export class PostSummonMessageAbAttr extends PostSummonAbAttr {
*/
export class PostSummonRemoveIllusionAbAttr extends PostSummonAbAttr {
applyPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
globalScene.getField(true).map(pokemon => {
for (const pokemon of globalScene.getField(true) {
pokemon.breakIllusion();
});
}
return true;
}
}