mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
Adjust type of getStats
This commit is contained in:
parent
d95398097f
commit
1a179cc9cb
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user