From f739a207efe3c9a30abbb412e91bbd742debf655 Mon Sep 17 00:00:00 2001 From: Howard-Zhou-77 <67568722+Howard-Zhou-77@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:06:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20yongjian.js=EF=BC=9A?= =?UTF-8?q?=E8=BF=9B=E4=B8=80=E6=AD=A5=E5=AE=8C=E5=96=84=E4=BA=86g=5Fdu=5F?= =?UTF-8?q?give=E7=9A=84=E5=88=A4=E6=96=AD=E6=9C=BA=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=95=8C=E9=BB=84=E7=9B=96=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E5=B1=AF=E3=80=90=E6=AF=92=E3=80=91=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/yongjian.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/card/yongjian.js b/card/yongjian.js index 836d6a632..db556028a 100644 --- a/card/yongjian.js +++ b/card/yongjian.js @@ -561,11 +561,13 @@ game.import('card',function(lib,game,ui,get,ai,_status){ prompt:'是否发动【赠毒】?', prompt2:'将本次获得的【毒】交给其他角色', ai1:function(card){ - if(_status.event.player.hasSkillTag("usedu")) return 0; + var player = _status.event.player; + if(player.hasSkillTag("usedu")||get.effect(player,{name: "loseHp"}, player, player)>0) return 0; if(!ui.selected.cards.length) return 1; return 0; }, ai2:function(target){ + if (target.hasSkillTag("usedu")) return get.attitude(_status.event.player,target)-0.01; return -get.attitude(_status.event.player,target)+0.01; }, }); From 1a3bbd67424e5923eee2b9a2ef4ec6c0d35a9f45 Mon Sep 17 00:00:00 2001 From: Howard-Zhou-77 <67568722+Howard-Zhou-77@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:22:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=EF=BC=9A=E6=8A=8Alosehp=E5=86=99=E6=88=90=E4=BA=86loseHp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/yongjian.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/card/yongjian.js b/card/yongjian.js index db556028a..f37ec87f7 100644 --- a/card/yongjian.js +++ b/card/yongjian.js @@ -562,12 +562,12 @@ game.import('card',function(lib,game,ui,get,ai,_status){ prompt2:'将本次获得的【毒】交给其他角色', ai1:function(card){ var player = _status.event.player; - if(player.hasSkillTag("usedu")||get.effect(player,{name: "loseHp"}, player, player)>0) return 0; + if(player.hasSkillTag("usedu")||get.effect(player,{name: "losehp"}, player, player)>0) return 0; if(!ui.selected.cards.length) return 1; return 0; }, ai2:function(target){ - if (target.hasSkillTag("usedu")) return get.attitude(_status.event.player,target)-0.01; + if (target.hasSkillTag("usedu")) return get.attitude(_status.event.player,target)-0.01; return -get.attitude(_status.event.player,target)+0.01; }, });