From c8a6a963f9082f7606be2e526410cd8462160fe4 Mon Sep 17 00:00:00 2001 From: EmberCM Date: Sun, 23 Jun 2024 12:56:38 -0500 Subject: [PATCH] Prevent lures from stacking different tiers --- src/modifier/modifier.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index b28d4e3b5b3..a55c4edcf4e 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -328,7 +328,8 @@ export class DoubleBattleChanceBoosterModifier extends LapsingPersistentModifier match(modifier: Modifier): boolean { if (modifier instanceof DoubleBattleChanceBoosterModifier) { - return (modifier as DoubleBattleChanceBoosterModifier).battlesLeft === this.battlesLeft; + // Check type id to not match different tiers of lures + return modifier.type.id === this.type.id && modifier.battlesLeft === this.battlesLeft; } return false; }