Kev fixes
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
8aa61ddfa2
commit
0d6f45092c
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue