修复贾逵【挽澜】check的bug

This commit is contained in:
mengxinzxz 2023-09-07 23:56:16 +08:00 committed by GitHub
parent bde5391105
commit 7de02d9138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8481,7 +8481,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
logTarget:'player', logTarget:'player',
check:function(event,player){ check:function(event,player){
if(get.attitude(player,event.player)<4) return false; 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; if(event.player==player||event.player==get.zhu(player)) return true;
return !player.hasUnknown(); return !player.hasUnknown();
}, },
@ -10146,7 +10146,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{global:'dying'}, trigger:{global:'dying'},
check:function(event,player){ check:function(event,player){
if(get.attitude(player,event.player)<4) return false; 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(event.player==player||event.player==get.zhu(player)) return true;
if(_status.currentPhase&&get.damageEffect(_status.currentPhase,player,player)<0) return false; if(_status.currentPhase&&get.damageEffect(_status.currentPhase,player,player)<0) return false;
return !player.hasUnknown(); return !player.hasUnknown();