diff --git a/audio/effect/link.mp3 b/audio/effect/link.mp3 index 8e25ee199..dabc347e1 100755 Binary files a/audio/effect/link.mp3 and b/audio/effect/link.mp3 differ diff --git a/audio/effect/link_clear.mp3 b/audio/effect/link_clear.mp3 new file mode 100644 index 000000000..213d667a3 Binary files /dev/null and b/audio/effect/link_clear.mp3 differ diff --git a/noname/library/element/content.js b/noname/library/element/content.js index 39f93cfe3..5eb0e0dbb 100644 --- a/noname/library/element/content.js +++ b/noname/library/element/content.js @@ -9186,19 +9186,13 @@ export const Content = { game.addVideo("turnOver", player, player.classList.contains("turnedover")); }, link: function () { - if (player.isLinked()) { - game.log(player, "解除连环"); - } else { - game.log(player, "被连环"); - } - if (lib.config.background_audio) { - game.playAudio("effect", "link"); - } - game.broadcast(function () { + const isLinked = player.isLinked(); + game.log(player, (isLinked ? "解除" : "被") + "连环"); + game.broadcastAll(isLinked => { if (lib.config.background_audio) { - game.playAudio("effect", "link"); + game.playAudio("effect", "link" + (isLinked ? "_clear" : "")); } - }); + }, isLinked); player.classList.remove("target"); if (get.is.linked2(player)) { player.classList.toggle("linked2");