mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Update logger.ts
Prevents logs updated at a certain time from causing a game crash
This commit is contained in:
parent
542944daf7
commit
763ec3c1c0
@ -614,12 +614,14 @@ function updateLog(drpd: DRPD): DRPD {
|
||||
for (var i = 0; i < drpd.waves.length; i++) {
|
||||
if (drpd.waves[i] && drpd.waves[i].pokemon) {
|
||||
for (var j = 0; j < drpd.waves[i].pokemon!.length; j++) {
|
||||
if (drpd.waves[i].pokemon![j].ivs) {
|
||||
drpd.waves[i].pokemon![j].iv_raw = drpd.waves[i].pokemon![j].ivs!
|
||||
drpd.waves[i].pokemon![j].ivs = undefined
|
||||
drpd.waves[i].pokemon![j].iv = formatIVs(drpd.waves[i].pokemon![j].ivs!)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // 1.1.0a → 1.1.0b
|
||||
return drpd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user