mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-02 14:34:52 +01:00
parent
5f01caffae
commit
a727375730
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user