Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
innerthunder 2024-11-09 01:41:21 -08:00 committed by GitHub
parent fa6387896c
commit 9a0a4eb19b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1369,11 +1369,11 @@ export class AddSecondStrikeAbAttr extends PreAttackAbAttr {
if (move.canBeMultiStrikeEnhanced(pokemon)) { if (move.canBeMultiStrikeEnhanced(pokemon)) {
this.showAbility = !!hitCount?.value; this.showAbility = !!hitCount?.value;
if (!!hitCount?.value) { if (hitCount?.value) {
hitCount.value += 1; hitCount.value += 1;
} }
if (!!multiplier?.value && pokemon.turnData.hitsLeft === 1) { if (multiplier?.value && pokemon.turnData.hitsLeft === 1) {
multiplier.value = this.damageMultiplier; multiplier.value = this.damageMultiplier;
} }
return true; return true;