[Hotfix] Leech Seed does not get cleared when user faints (#6388)

Lapsing leech seed tag even when source has left field
This commit is contained in:
Wlowscha 2025-08-24 15:58:27 +02:00 committed by GitHub
parent 8dea0ce840
commit ae58f9de4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1058,8 +1058,7 @@ export class SeedTag extends SerializableBattlerTag {
// Check which opponent to restore HP to // Check which opponent to restore HP to
const source = pokemon.getOpponents().find(o => o.getBattlerIndex() === this.sourceIndex); const source = pokemon.getOpponents().find(o => o.getBattlerIndex() === this.sourceIndex);
if (!source) { if (!source) {
console.warn(`Failed to get source Pokemon for SeedTag lapse; id: ${this.sourceId}`); return true;
return false;
} }
const cancelled = new BooleanHolder(false); const cancelled = new BooleanHolder(false);