Skip to content

Commit 922b5a9

Browse files
committed
让武器不支持 297
1 parent 07a4b3f commit 922b5a9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

script.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5722,10 +5722,12 @@ function initialize() {
57225722
mon.level >= card.maxLevel) { //当4种特殊type的时候是无法297和打觉醒的,但是不能叠加的在未满级时可以
57235723
mon.plus = [0, 0, 0];
57245724
} else {
5725-
mon.plus[0] = parseInt(monEditAddHp.value, 10) || 0;
5726-
mon.plus[1] = parseInt(monEditAddAtk.value, 10) || 0;
5727-
mon.plus[2] = parseInt(monEditAddRcv.value, 10) || 0;
5728-
if (!editBox.isAssist) { //如果不是辅助,则可以设定潜觉
5725+
mon.plus = [monEditAddHp, monEditAddAtk, monEditAddRcv].map(node=>parseInt(node.value, 10) || 0);
5726+
if (editBox.isAssist) {
5727+
//武器超过297的部分无效
5728+
mon.plus = mon.plus.map(value=>Math.min(value, 99));
5729+
} else {
5730+
//如果不是辅助,则可以设定潜觉
57295731
mon.latent = editBox.latent.concat();
57305732
}
57315733
}

0 commit comments

Comments
 (0)