谋诸葛亮【观星】ai bugfix
This commit is contained in:
parent
c6238743ef
commit
23d6a2ae92
|
@ -579,10 +579,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var top=[],att=get.sgn(get.attitude(player,target));
|
var top=[],att=get.sgn(get.attitude(player,target));
|
||||||
if(judges.length&&att!=0&&(target!=player||!player.hasWuxie())){
|
if(judges.length&&att!=0&&(target!=player||!player.hasWuxie())){
|
||||||
for(var i=0;i<judges.length;i++){
|
for(var i=0;i<judges.length;i++){
|
||||||
var judge=get.judge(judges[i])*att;
|
var judge=(card,num)=>get.judge(card)*num;
|
||||||
cards.sort((a,b)=>judge(b)-judge(a));
|
cards.sort((a,b)=>judge(b,att)-judge(a,att));
|
||||||
if(judge(cards[0])>0) top.unshift(cards.shift());
|
if(judge(cards[0],att)<0) break;
|
||||||
else break;
|
else top.unshift(cards.shift());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [cards,top];
|
return [cards,top];
|
||||||
|
@ -763,7 +763,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
discard:false,
|
discard:false,
|
||||||
lose:false,
|
lose:false,
|
||||||
delay:0,
|
delay:0,
|
||||||
usable:2,
|
usable:3,
|
||||||
prompt:'将一张红色牌交给一名角色并令其获得此花色的“天香”标记',
|
prompt:'将一张红色牌交给一名角色并令其获得此花色的“天香”标记',
|
||||||
content:function(){
|
content:function(){
|
||||||
player.give(cards,target);
|
player.give(cards,target);
|
||||||
|
@ -803,6 +803,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
target.removeSkill(skills);
|
target.removeSkill(skills);
|
||||||
num+=skills.length;
|
num+=skills.length;
|
||||||
});
|
});
|
||||||
|
if(get.mode()=='versus'&&_status.mode=='two') num+=2;
|
||||||
player.draw(num);
|
player.draw(num);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -5715,7 +5716,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
sb_xiaoqiao:'谋小乔',
|
sb_xiaoqiao:'谋小乔',
|
||||||
sb_xiaoqiao_prefix:'谋',
|
sb_xiaoqiao_prefix:'谋',
|
||||||
sbtianxiang:'天香',
|
sbtianxiang:'天香',
|
||||||
sbtianxiang_info:'①出牌阶段限两次,你可以交给一名没有“天香”标记的其他角色一张红色牌,然后令其获得此牌花色的“天香”标记。②当你受到伤害时,你可以移去一名角色的“天香”标记,若此“天香”标记为:红桃,你防止此伤害,其受到伤害来源对其造成的1点伤害(若没有伤害来源则改为无来源伤害);方片,其交给你两张牌。③准备阶段,你移去场上所有的“天香”标记,然后摸等量的牌。',
|
sbtianxiang_info:'①出牌阶段限三次,你可以交给一名没有“天香”标记的其他角色一张红色牌,然后令其获得此牌花色的“天香”标记。②当你受到伤害时,你可以移去一名角色的“天香”标记,若此“天香”标记为:红桃,你防止此伤害,其受到伤害来源对其造成的1点伤害(若没有伤害来源则改为无来源伤害);方片,其交给你两张牌。③准备阶段,你移去场上所有的“天香”标记,然后摸等量的牌。',
|
||||||
|
sbtianxiang_info_versus_two:'①出牌阶段限三次,你可以交给一名没有“天香”标记的其他角色一张红色牌,然后令其获得此牌花色的“天香”标记。②当你受到伤害时,你可以移去一名角色的“天香”标记,若此“天香”标记为:红桃,你防止此伤害,其受到伤害来源对其造成的1点伤害(若没有伤害来源则改为无来源伤害);方片,其交给你两张牌。③准备阶段,你移去场上所有的“天香”标记,然后摸X张牌(X为移去的“天香”标记数+2)。',
|
||||||
sb_sp_zhugeliang:'谋诸葛亮',
|
sb_sp_zhugeliang:'谋诸葛亮',
|
||||||
sb_sp_zhugeliang_prefix:'谋',
|
sb_sp_zhugeliang_prefix:'谋',
|
||||||
sb_zhugeliang:'谋诸葛亮',
|
sb_zhugeliang:'谋诸葛亮',
|
||||||
|
|
Loading…
Reference in New Issue