Fixed stuff

This commit is contained in:
Bertie690 2025-04-24 21:24:33 -04:00
parent 12e3def562
commit a2bd3ac463
2 changed files with 1 additions and 2 deletions

View File

@ -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; // falls through this.initialHp = target.hp;
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);

View File

@ -222,7 +222,6 @@ 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: