Skip to content

Commit

Permalink
Fix Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed May 3, 2024
1 parent a034741 commit 874ca08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions calc/src/mechanics/gen789.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,14 @@ export function calculateSMSSSV(
desc.moveType = type;
} else if (move.named('Judgment') && attacker.item && attacker.item.includes('Plate')) {
type = getItemBoostType(attacker.item)!;
} else if (move.originalName === 'Techno Blast' && attacker.item && attacker.item.includes('Drive')) {
} else if (move.originalName === 'Techno Blast' &&
attacker.item && attacker.item.includes('Drive')) {
type = getTechnoBlast(attacker.item)!;
if (move.isMax) {
desc.moveType = type;
}
} else if (move.originalName === 'Multi-Attack' && attacker.item && attacker.item.includes('Memory')) {
} else if (move.originalName === 'Multi-Attack' &&
attacker.item && attacker.item.includes('Memory')) {
type = getMultiAttack(attacker.item)!;
if (move.isMax) {
desc.moveType = type;
Expand Down Expand Up @@ -298,7 +300,7 @@ export function calculateSMSSSV(
) || (move.named('Tera Blast') && attacker.teraType);

if (!move.isZ && !noTypeChange) {
const normal = type === "Normal";
const normal = type === 'Normal';
if ((isAerilate = attacker.hasAbility('Aerilate') && normal)) {
type = 'Flying';
} else if ((isGalvanize = attacker.hasAbility('Galvanize') && normal)) {
Expand Down
2 changes: 1 addition & 1 deletion calc/src/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function getMaxMoveName(
if (pokemonSpecies === 'Eevee-Gmax') return 'G-Max Cuddle';
if (pokemonSpecies === 'Meowth-Gmax') return 'G-Max Gold Rush';
if (pokemonSpecies === 'Snorlax-Gmax') return 'G-Max Replenish';
if (!(moveName === "Weather Ball" || moveName === "Terrain Pulse")) {
if (!(moveName === 'Weather Ball' || moveName === 'Terrain Pulse')) {
if (pokemonAbility === 'Pixilate') return 'Max Starfall';
if (pokemonAbility === 'Aerilate') return 'Max Airstream';
if (pokemonAbility === 'Refrigerate') return 'Max Hailstorm';
Expand Down

0 comments on commit 874ca08

Please sign in to comment.