Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Mumble 2024-10-24 18:41:41 -07:00 committed by NightKev
parent f2db4a8ade
commit 2409a2547d
4 changed files with 4 additions and 3 deletions

View File

@ -4681,6 +4681,7 @@ export class PreventBypassSpeedChanceAbAttr extends AbAttr {
/** /**
* This applies a terrain-based type change to the Pokemon. * This applies a terrain-based type change to the Pokemon.
* Used by Mimicry.
*/ */
export class TerrainEventTypeChangeAbAttr extends PostSummonAbAttr { export class TerrainEventTypeChangeAbAttr extends PostSummonAbAttr {
constructor() { constructor() {

View File

@ -32,7 +32,7 @@ describe("Moves - Forest's Curse", () => {
.enemyMoveset(Moves.SPLASH); .enemyMoveset(Moves.SPLASH);
}); });
it("Using Forest's Curse on a Pokemon affected by Trick Or Treat will replace the Ghost-type with Grass", async () => { it("will replace the added type from Trick Or Treat", async () => {
await game.classicMode.startBattle([ Species.FEEBAS ]); await game.classicMode.startBattle([ Species.FEEBAS ]);
const enemyPokemon = game.scene.getEnemyPokemon(); const enemyPokemon = game.scene.getEnemyPokemon();

View File

@ -29,7 +29,7 @@ describe("Moves - Reflect Type", () => {
.enemyAbility(Abilities.BALL_FETCH); .enemyAbility(Abilities.BALL_FETCH);
}); });
it("If a typeless Pokemon has additionally been affected by Forest's Curse or Trick-or-Treat, however, Reflect Type will cause the user to become a Normal type with an added Grass or Ghost type respectively", async () => { it("will make the user Normal/Grass if targetting a typeless Pokemon affected by Forest's Curse", async () => {
game.override game.override
.moveset([ Moves.FORESTS_CURSE, Moves.REFLECT_TYPE ]) .moveset([ Moves.FORESTS_CURSE, Moves.REFLECT_TYPE ])
.startingLevel(60) .startingLevel(60)

View File

@ -32,7 +32,7 @@ describe("Moves - Trick Or Treat", () => {
.enemyMoveset(Moves.SPLASH); .enemyMoveset(Moves.SPLASH);
}); });
it("Using Trick Or Treat on a Pokemon affected by Forest's Curse will replace the Grass-type with Ghost", async () => { it("will replace added type from Forest's Curse", async () => {
await game.classicMode.startBattle([ Species.FEEBAS ]); await game.classicMode.startBattle([ Species.FEEBAS ]);
const enemyPokemon = game.scene.getEnemyPokemon(); const enemyPokemon = game.scene.getEnemyPokemon();