Stop trace from displaying itself

This commit is contained in:
Dean 2025-02-02 12:42:22 -08:00
parent 9c9d550605
commit b7bcef903c

View File

@ -2358,6 +2358,10 @@ export class PostSummonCopyAbilityAbAttr extends PostSummonAbAttr {
private target: Pokemon;
private targetAbilityName: string;
constructor() {
super(false); // Displaying ability changes should be handled by ab swap function
}
willSucceedPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
const targets = pokemon.getOpponents();
if (!targets.length) {