mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
f2db4a8ade
commit
2409a2547d
@ -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() {
|
||||||
|
@ -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();
|
||||||
|
@ -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)
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user