From 8c84806aff674c7aba94815ef1a2519892a97cbb Mon Sep 17 00:00:00 2001 From: ZiG60020405 <47026578+zhichaoxi2006@users.noreply.github.com> Date: Sun, 2 Jun 2024 16:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=8C=91=E7=9A=84ge?= =?UTF-8?q?t.attitude=E5=87=BD=E6=95=B0=E4=B8=8D=E6=A3=80=E6=B5=8Bfrom?= =?UTF-8?q?=E6=88=96to=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/single.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mode/single.js b/mode/single.js index caab69e66..ab36f47a0 100644 --- a/mode/single.js +++ b/mode/single.js @@ -1562,6 +1562,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { }, get: { attitude: function (from, to) { + if (!from || !to) return 0; if (from.identity == to.identity) return 10; return -10; },