OL界魏延&马承bugfix

This commit is contained in:
copcap 2023-11-06 00:34:42 +08:00
parent 63a786c95c
commit 3ee5084f6f
No known key found for this signature in database
GPG Key ID: 9AE7B8AF097EC926
2 changed files with 2 additions and 2 deletions

View File

@ -9468,7 +9468,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player:function(player){
if(player.hp<3) return false;
var mindist=player.hp;
if(player.countCards('hs',card=>player.canSave(card,player))) mindist++;
if(player.countCards('hs',card=>player.canSaveCard(card,player))) mindist++;
if(game.hasPlayer(function(current){
return (get.distance(player,current)<=mindist&&
player.canUse('sha',current,false)&&

View File

@ -5690,7 +5690,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var cards1=list[0][1].slice(),cards2=list[1][1].slice();
var card1=cards1.sort((a,b)=>get.value(b)-get.value(a))[0];
var card2=cards2.sort((a,b)=>get.value(a)-get.value(b))[0];
if(get.value(card1)>get.value(card2)){
if(card1&&card2&&get.value(card1)>get.value(card2)){
cards1.remove(card1);
cards2.remove(card2);
cards1.push(card2);