Adjust type of getStats

This commit is contained in:
Sirz Benjie 2025-09-11 22:26:17 -05:00
parent d95398097f
commit 1a179cc9cb
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -1320,7 +1320,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
* @param bypassSummonData - Whether to prefer actual stats (`true`) or in-battle overridden stats (`false`); default `true`
* @returns The numeric values of this {@linkcode Pokemon}'s stats as an array.
*/
getStats(bypassSummonData = true): ArrayLike<number> {
getStats(bypassSummonData = true): Uint32Array {
if (!bypassSummonData) {
// Only grab summon data stats if nonzero
return this.summonData.stats.map((s, i) => s || this.stats[i]);