修复单挑的get.attitude函数不检测from或to是否存在的问题.

This commit is contained in:
ZiG60020405 2024-06-02 16:54:22 +08:00 committed by GitHub
parent c672136bcb
commit 8c84806aff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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;
},