Update src/data/ability.ts

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
This commit is contained in:
Lylian BALL 2025-04-11 18:27:49 +02:00 committed by GitHub
parent f7efc12518
commit 57a51aab0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -5296,10 +5296,10 @@ export class IllusionPreSummonAbAttr extends PreSummonAbAttr {
/**
* Apply a new illusion when summoning Zoroark if the illusion is available
*
* @param {Pokemon} pokemon - The Pokémon with the Illusion ability.
* @param {boolean} passive - N/A
* @param {...any} args - N/A
* @returns {boolean} - Whether the illusion was applied.
* @param pokemon - The Pokémon with the Illusion ability.
* @param passive - N/A
* @param args - N/A
* @returns Whether the illusion was applied.
*/
override applyPreSummon(pokemon: Pokemon, passive: boolean, args: any[]): void {
const party: Pokemon[] = (pokemon.isPlayer() ? globalScene.getPlayerParty() : globalScene.getEnemyParty()).filter(p => p.isAllowedInBattle());