From 7de02d9138bbd13fd941de769ee82b5fe6394388 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:56:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=BE=E9=80=B5=E3=80=90?= =?UTF-8?q?=E6=8C=BD=E6=BE=9C=E3=80=91check=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/mobile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index 0f93950ab..4c8fe078d 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -8481,7 +8481,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)<4) return false; - if(player.countCards('hs',card=>player.canSaveCard(card,target))>=1+event.num-event.player.hp) return false; + if(player.countCards('hs',card=>player.canSaveCard(card,event.player))>=1+event.num-event.player.hp) return false; if(event.player==player||event.player==get.zhu(player)) return true; return !player.hasUnknown(); }, @@ -10146,7 +10146,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ trigger:{global:'dying'}, check:function(event,player){ if(get.attitude(player,event.player)<4) return false; - if(player.countCards('hs',card=>player.canSaveCard(card,target))>=1-event.player.hp) return false; + if(player.countCards('hs',card=>player.canSaveCard(card,event.player))>=1-event.player.hp) return false; if(event.player==player||event.player==get.zhu(player)) return true; if(_status.currentPhase&&get.damageEffect(_status.currentPhase,player,player)<0) return false; return !player.hasUnknown();