Merge branch 'beta' into biome/add-no-unused-imports

This commit is contained in:
NightKev 2025-03-29 03:21:15 -07:00 committed by GitHub
commit 00dec73bd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2151,6 +2151,21 @@ export class TypeBoostTag extends BattlerTag {
lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean { lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean {
return lapseType !== BattlerTagLapseType.CUSTOM || super.lapse(pokemon, lapseType); return lapseType !== BattlerTagLapseType.CUSTOM || super.lapse(pokemon, lapseType);
} }
override onAdd(pokemon: Pokemon): void {
globalScene.queueMessage(
i18next.t("abilityTriggers:typeImmunityPowerBoost", {
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
typeName: i18next.t(`pokemonInfo:Type.${PokemonType[this.boostedType]}`),
}),
);
}
override onOverlap(pokemon: Pokemon): void {
globalScene.queueMessage(
i18next.t("abilityTriggers:moveImmunity", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }),
);
}
} }
export class CritBoostTag extends BattlerTag { export class CritBoostTag extends BattlerTag {