From 696c31f3e270630278165a7ae67ee17021d44e01 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Fri, 26 Apr 2024 18:06:41 +1000 Subject: [PATCH] Make grass types unable to be seeded --- src/data/battler-tags.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index b12d15968..aaab9f9a4 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -276,6 +276,10 @@ export class SeedTag extends BattlerTag { super(BattlerTagType.SEEDED, BattlerTagLapseType.TURN_END, 1, Moves.LEECH_SEED, sourceId); } + canAdd(pokemon: Pokemon): boolean { + return !pokemon.isOfType(Type.GRASS); + } + onAdd(pokemon: Pokemon): void { super.onAdd(pokemon);