OL界魏延&马承bugfix
This commit is contained in:
parent
63a786c95c
commit
3ee5084f6f
|
@ -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)&&
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue