Invert arena trap side target condition
parent
9f280f5f72
commit
728ee530fc
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue