Prevent lures from stacking different tiers

This commit is contained in:
EmberCM 2024-06-23 12:56:38 -05:00
parent d8e5dc1e91
commit c8a6a963f9
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}