Merge pull request #1426 from zhichaoxi2006/bugfix

Bugfix
This commit is contained in:
Spmario233 2024-06-02 21:40:01 +08:00 committed by GitHub
commit bb757f714d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -7171,10 +7171,10 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
return player.countCards("h") == 0; return player.countCards("h") == 0;
}, },
x6: function (player, event) { x6: function (player, event) {
return event.hasNature("fire"); if(event.hasNature) return event.hasNature("fire");
}, },
x5: function (player, event) { x5: function (player, event) {
return event.hasNature("thunder"); if(event.hasNature) return event.hasNature("thunder");
}, },
x4: function (player, event) { x4: function (player, event) {
return event.name == "loseHp"; return event.name == "loseHp";

View File

@ -1562,6 +1562,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
}, },
get: { get: {
attitude: function (from, to) { attitude: function (from, to) {
if (!from || !to) return 0;
if (from.identity == to.identity) return 10; if (from.identity == to.identity) return 10;
return -10; return -10;
}, },