fix: 追猎自动存档

This commit is contained in:
AncTe committed 2024-09-28 15:52:17 +08:00
1 parent c6e0573496
commit 22c1ff5a4d
2 files changed
+14 -15

No files matched your search

+1 -2
View File
@@ -425,8 +425,7 @@ export class HeroMover extends ObjectMoverBase {
const map = core.status.thisMap.enemy.mapDamage;
const dam = map[index];
const nextDam = map[nIndex];
if (!dam) return false;
if (nextDam.mockery || (!dam.hunt && nextDam.hunt)) {
if (nextDam?.mockery || (!dam?.hunt && nextDam?.hunt)) {
core.autosave();
return true;
}