Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Oct 22, 2024
1 parent cb6c1e4 commit 13b28ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion calc/src/mechanics/gen4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function calculateDPP(
'Suction Cups', 'Tangled Feet', 'Thick Fat', 'Unaware',
'Vital Spirit', 'Volt Absorb', 'Water Absorb', 'Water Veil',
'White Smoke', 'Wonder Guard'
)
);

if (attacker.hasAbility('Mold Breaker') && defenderAbilityIgnored) {
defender.ability = '' as AbilityName;
Expand Down
2 changes: 1 addition & 1 deletion calc/src/mechanics/gen56.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function calculateBWXY(
'Telepathy', 'Thick Fat', 'Unaware', 'Vital Spirit',
'Volt Absorb', 'Water Absorb', 'Water Veil', 'White Smoke',
'Wonder Guard', 'Wonder Skin'
)
);

if (attacker.hasAbility('Mold Breaker', 'Teravolt', 'Turboblaze') && defenderAbilityIgnored) {
defender.ability = '' as AbilityName;
Expand Down
4 changes: 2 additions & 2 deletions calc/src/mechanics/gen789.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function calculateSMSSSV(
return result;
}

const defenderAbilityIgnored = defender.hasAbility(
const defenderAbilityIgnored = defender.hasAbility(
'Armor Tail', 'Aroma Veil', 'Aura Break', 'Battle Armor',
'Big Pecks', 'Bulletproof', 'Clear Body', 'Contrary',
'Damp', 'Dazzling', 'Disguise', 'Dry Skin',
Expand All @@ -171,7 +171,7 @@ export function calculateSMSSSV(
'Volt Absorb', 'Water Absorb', 'Water Bubble', 'Water Veil',
'Well-Baked Body', 'White Smoke', 'Wind Rider', 'Wonder Guard',
'Wonder Skin'
)
);

const attackerIgnoresAbility = attacker.hasAbility('Mold Breaker', 'Teravolt', 'Turboblaze');
const moveIgnoresAbility = move.named(
Expand Down

0 comments on commit 13b28ee

Please sign in to comment.