Accept suggested change

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Sirz Benjie 2025-01-30 18:39:20 -06:00
parent cd732ef27c
commit 4f163dc644
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -1708,8 +1708,8 @@ export class AllyStatMultiplierAbAttr extends AbAttr {
* @param args - unused * @param args - unused
* @returns `true` if this changed the checked stat, `false` otherwise. * @returns `true` if this changed the checked stat, `false` otherwise.
*/ */
applyAllyStat(pokemon: Pokemon, _passive: boolean, simulated: boolean, stat: BattleStat, statValue: Utils.NumberHolder, checkedPokemon: Pokemon, ignore: boolean, args: any[]): boolean | Promise<boolean> { applyAllyStat(pokemon: Pokemon, _passive: boolean, simulated: boolean, stat: BattleStat, statValue: Utils.NumberHolder, checkedPokemon: Pokemon, ignoreAbility: boolean, args: any[]): boolean | Promise<boolean> {
if (stat === this.stat && !(ignore && this.ignorable)) { if (stat === this.stat && !(ignoreAbility && this.ignorable)) {
statValue.value *= this.multiplier; statValue.value *= this.multiplier;
return true; return true;
} }