Invert arena trap side target condition

pull/14/head
Flashfyre 2024-02-09 15:48:20 -05:00
parent 9f280f5f72
commit 728ee530fc
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export class ArenaTrapTag extends ArenaTag {
apply(arena: Arena, args: any[]): boolean { apply(arena: Arena, args: any[]): boolean {
const pokemon = args[0] as Pokemon; const pokemon = args[0] as Pokemon;
if (this.sourceId === pokemon.id || (this.side === ArenaTagSide.PLAYER) === pokemon.isPlayer()) if (this.sourceId === pokemon.id || (this.side === ArenaTagSide.PLAYER) !== pokemon.isPlayer())
return false; return false;
return this.activateTrap(pokemon); return this.activateTrap(pokemon);