mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
fa6387896c
commit
9a0a4eb19b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user