mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
[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:
parent
8dea0ce840
commit
ae58f9de4f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user