mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
Ran Biome
This commit is contained in:
parent
923742639f
commit
95cf1b1203
@ -736,8 +736,7 @@ export class AttackTypeImmunityAbAttr extends TypeImmunityAbAttr {
|
||||
override canApply(params: TypeMultiplierAbAttrParams): boolean {
|
||||
const { move } = params;
|
||||
return (
|
||||
move.category !== MoveCategory.STATUS
|
||||
// TODO: make thousand arrows ignore levitate in a different manner
|
||||
move.category !== MoveCategory.STATUS // TODO: make thousand arrows ignore levitate in a different manner
|
||||
&& !move.hasAttr("NeutralDamageAgainstFlyingTypeAttr")
|
||||
&& super.canApply(params)
|
||||
);
|
||||
|
@ -61,9 +61,10 @@ describe.sequential("Move - Flying Press", () => {
|
||||
expect
|
||||
.soft(
|
||||
flyingPressEff,
|
||||
`Flying Press effectiveness against ${toTitleCase(PokemonType[type])} was incorrect!` +
|
||||
`\nExpected: ${flyingPressEff},` +
|
||||
`\nActual: ${primaryEff * flyingEff} (=${primaryEff} * ${flyingEff})`,
|
||||
// biome-ignore lint/complexity/noUselessStringConcat: Biome can't detect multiline concats with operators before line
|
||||
`Flying Press effectiveness against ${toTitleCase(PokemonType[type])} was incorrect!`
|
||||
+ `\nExpected: ${flyingPressEff},`
|
||||
+ `\nActual: ${primaryEff * flyingEff} (=${primaryEff} * ${flyingEff})`,
|
||||
)
|
||||
.toBe(primaryEff * flyingEff);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user