Kev fixes

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Dean 2025-04-08 00:42:57 -07:00 committed by GitHub
parent 8aa61ddfa2
commit 0d6f45092c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -807,10 +807,10 @@ export class ReverseDrainAbAttr extends PostDefendAbAttr {
private attacker: Pokemon;
/**
* Determines if a damage and draining move was used
* Determines if a damage and draining move was used.
* Examples include: Absorb, Draining Kiss, Bitter Blade, etc.
*
* If so, this ability should cause the move user should be damaged instead of healed
* If so, this ability should cause the move user to be damaged instead of healed
*/
override canApplyPostDefend(pokemon: Pokemon, passive: boolean, simulated: boolean, attacker: Pokemon, move: Move, hitResult: HitResult | null, args: any[]): boolean {
this.attacker = attacker;

View File

@ -22,17 +22,17 @@ describe("Abilities - Liquid Ooze", () => {
beforeEach(() => {
game = new GameManager(phaserGame);
game.override
.moveset([Moves.SPLASH])
.moveset([Moves.SPLASH, Moves.GIGA_DRAIN])
.ability(Abilities.BALL_FETCH)
.battleType("single")
.disableCrits()
.enemyLevel(20)
.enemySpecies(Species.MAGIKARP)
.enemyAbility(Abilities.LIQUID_OOZE)
.enemyMoveset(Moves.SPLASH);
});
it("should drain the attacker's HP after a draining move", async () => {
game.override.moveset(Moves.GIGA_DRAIN).enemyLevel(20);
await game.classicMode.startBattle([Species.FEEBAS]);
game.move.select(Moves.GIGA_DRAIN);
@ -42,7 +42,7 @@ describe("Abilities - Liquid Ooze", () => {
});
it("should not drain the attacker's HP if it ignores indirect damage", async () => {
game.override.moveset(Moves.GIGA_DRAIN).enemyLevel(20).ability(Abilities.MAGIC_GUARD);
game.override.ability(Abilities.MAGIC_GUARD);
await game.classicMode.startBattle([Species.FEEBAS]);
game.move.select(Moves.GIGA_DRAIN);
@ -52,7 +52,7 @@ describe("Abilities - Liquid Ooze", () => {
});
it("should not apply if suppressed", async () => {
game.override.moveset(Moves.GIGA_DRAIN).enemyLevel(20).ability(Abilities.NEUTRALIZING_GAS);
game.override.ability(Abilities.NEUTRALIZING_GAS);
await game.classicMode.startBattle([Species.FEEBAS]);
game.move.select(Moves.GIGA_DRAIN);