Skip to content

Commit

Permalink
Merge pull request libccy#1457 from IceCola97/PR-Branch
Browse files Browse the repository at this point in the history
修复bug:国战英魂报错;security初始化没有await调用;联机2v2使用了未定义变量func
  • Loading branch information
Spmario233 committed Jun 11, 2024
2 parents eb6d06e + 43e494c commit c625c19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion character/shenhua/skill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5011,7 +5011,7 @@ const skills = {
const str1 = "摸" + get.cnNumber(num, true) + "弃一";
const str2 = "摸一弃" + get.cnNumber(num, true);
directcontrol =
str ==
str1 ==
(await player
.chooseControl(str1, str2, function (event, player) {
if (player.isHealthy()) return 1 - _status.event.choice;
Expand Down
1 change: 0 additions & 1 deletion mode/versus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3761,7 +3761,6 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
for (var i = 0; i < lib.configOL.characterPack.length; i++) {
var pack = lib.characterPack[lib.configOL.characterPack[i]];
for (var j in pack) {
if (typeof func == "function" && func(j)) continue;
if (lib.connectBanned.includes(j)) continue;
if (lib.character[j]) libCharacter[j] = pack[j];
}
Expand Down
2 changes: 1 addition & 1 deletion noname/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export async function boot() {
// 初始化security
const securityModule = await import("../util/security.js");
const security = securityModule.default;
security.initSecurity({
await security.initSecurity({
lib, game, ui, get, ai, _status, gnc,
});

Expand Down

0 comments on commit c625c19

Please sign in to comment.