mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
[bug/i18n] Fix stealth rock message (#6377)
replace pokemonName with pokemonNameWithAffix
This commit is contained in:
parent
a8b54eba6d
commit
1b2c694084
@ -937,7 +937,7 @@ class StealthRockTag extends DamagingTrapTag {
|
|||||||
|
|
||||||
protected override getTriggerMessage(pokemon: Pokemon): string {
|
protected override getTriggerMessage(pokemon: Pokemon): string {
|
||||||
return i18next.t("arenaTag:stealthRockActivateTrap", {
|
return i18next.t("arenaTag:stealthRockActivateTrap", {
|
||||||
pokemonName: getPokemonNameWithAffix(pokemon),
|
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ describe("Moves - Entry Hazards", () => {
|
|||||||
expect(enemy).toHaveTakenDamage(enemy.getMaxHp() * 0.125 * multi);
|
expect(enemy).toHaveTakenDamage(enemy.getMaxHp() * 0.125 * multi);
|
||||||
expect(game.textInterceptor.logs).toContain(
|
expect(game.textInterceptor.logs).toContain(
|
||||||
i18next.t("arenaTag:stealthRockActivateTrap", {
|
i18next.t("arenaTag:stealthRockActivateTrap", {
|
||||||
pokemonName: getPokemonNameWithAffix(enemy),
|
pokemonNameWithAffix: getPokemonNameWithAffix(enemy),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user