mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Fixed errors
This commit is contained in:
parent
ba2bf7dd01
commit
cf11517629
@ -18,9 +18,9 @@ export default tseslint.config(
|
|||||||
"@typescript-eslint": tseslint.plugin,
|
"@typescript-eslint": tseslint.plugin,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
// Prevent fallthrough on switch without an explicit "falls through" comment.
|
// Prevent fallthrough on switch without an explicit "falls through" comment with explanatino.
|
||||||
// Note: Move to biome if/when they add "falls through" comments
|
// Note: Move to biome if/when they add "falls through" comments
|
||||||
"no-fallthrough": ["error", { commentPattern: "falls through" }],
|
"no-fallthrough": ["error", { commentPattern: "^ falls through" }],
|
||||||
"no-undef": "off", // Disables the rule that disallows the use of undeclared variables (TypeScript handles this)
|
"no-undef": "off", // Disables the rule that disallows the use of undeclared variables (TypeScript handles this)
|
||||||
"no-extra-semi": "error", // Disallows unnecessary semicolons for TypeScript-specific syntax
|
"no-extra-semi": "error", // Disallows unnecessary semicolons for TypeScript-specific syntax
|
||||||
"import-x/extensions": ["error", "never", { json: "always" }], // Enforces no extension for imports unless json
|
"import-x/extensions": ["error", "never", { json: "always" }], // Enforces no extension for imports unless json
|
||||||
|
@ -1512,7 +1512,7 @@ export class TargetHalfHpDamageAttr extends FixedDamageAttr {
|
|||||||
switch (user.turnData.hitCount - user.turnData.hitsLeft) {
|
switch (user.turnData.hitCount - user.turnData.hitsLeft) {
|
||||||
case 0:
|
case 0:
|
||||||
// first hit of move; update initialHp tracker
|
// first hit of move; update initialHp tracker
|
||||||
this.initialHp = target.hp;
|
this.initialHp = target.hp; // falls through
|
||||||
default:
|
default:
|
||||||
// multi lens added hit; use initialHp tracker to ensure correct damage
|
// multi lens added hit; use initialHp tracker to ensure correct damage
|
||||||
(args[0] as NumberHolder).value = toDmgValue(this.initialHp / 2);
|
(args[0] as NumberHolder).value = toDmgValue(this.initialHp / 2);
|
||||||
|
@ -222,6 +222,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
|||||||
pokemonName: getPokemonNameWithAffix(target),
|
pokemonName: getPokemonNameWithAffix(target),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
// falls through to play msg
|
||||||
case HitCheckResult.NO_EFFECT_NO_MESSAGE:
|
case HitCheckResult.NO_EFFECT_NO_MESSAGE:
|
||||||
case HitCheckResult.PROTECTED:
|
case HitCheckResult.PROTECTED:
|
||||||
case HitCheckResult.TARGET_NOT_ON_FIELD:
|
case HitCheckResult.TARGET_NOT_ON_FIELD:
|
||||||
|
Loading…
Reference in New Issue
Block a user