bug fixs
This commit is contained in:
parent
7d2ffba9b4
commit
c3608b7ef9
|
@ -1148,10 +1148,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
}
|
||||
"step 3"
|
||||
if(event.target.isDead()||event.player.isDead()){
|
||||
event.finish();
|
||||
}
|
||||
else{
|
||||
if(result.bool){
|
||||
event.shaRequired--;
|
||||
if(event.turn==target){
|
||||
|
@ -1179,7 +1175,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
player.damage(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
event._result={};
|
||||
},
|
||||
ai:{
|
||||
wuxie:function(target,card,player,viewer){
|
||||
|
|
|
@ -2278,7 +2278,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
'step 1'
|
||||
//特殊处理
|
||||
if(player.isDead()){
|
||||
player.useResult(event.result,event.getParent())
|
||||
player.useResult(event.result,event.getParent()).forceDie=true;
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
29
game/game.js
29
game/game.js
|
@ -25152,24 +25152,25 @@
|
|||
},
|
||||
addJudgeNext:function(card,unlimited){
|
||||
if(!card.expired){
|
||||
if(!unlimited&&get.position(card,true)!=='o'&&get.position(card,true)!=='j'){
|
||||
game.log('将',card,'移入',this.next,'的判定区失败');
|
||||
let target=this.next;
|
||||
const name=card.viewAs||card.name;
|
||||
const cards=(get.itemtype(card)=='card')?[card]:card.cards;
|
||||
if(get.itemtype(cards)!='cards') return;
|
||||
let bool=false;
|
||||
if(!unlimited&&cards.some(card=>{
|
||||
const position=get.position(card,true);
|
||||
return position!='j'&&position!='o';
|
||||
})){
|
||||
game.log(card,'已被移出处理区,无法置入判定区');
|
||||
return;
|
||||
}
|
||||
var target=this.next;
|
||||
var name=card.viewAs||card.name;
|
||||
var bool=false;
|
||||
for(var iwhile=0;iwhile<20;iwhile++){
|
||||
for(let iwhile=0;iwhile<20;iwhile++){
|
||||
if(target.canAddJudge(card)){
|
||||
bool=true;break;
|
||||
}
|
||||
target=target.next;
|
||||
}
|
||||
if(!bool){
|
||||
game.log(card,'进入了弃牌堆');
|
||||
game.cardsDiscard(card);
|
||||
}
|
||||
else{
|
||||
if(bool){
|
||||
if(card.cards&&card.cards.length){
|
||||
target.addJudge(name,card.cards[0]);
|
||||
}
|
||||
|
@ -56223,7 +56224,7 @@
|
|||
if(!extraInformations) return false;
|
||||
for(const extraInformation of extraInformations){
|
||||
if(!extraInformation.startsWith('doublegroup:')) continue;
|
||||
return Boolean(array)&&extraInformation.split(':').slice(1);
|
||||
return array?extraInformation.split(':').slice(1):true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
@ -59018,6 +59019,10 @@
|
|||
if(cardinfo&&cardinfo.cardPrompt) uiintro.add('<div><div class="skill">'+es[i].outerHTML+'</div><div>'+cardinfo.cardPrompt(es[i])+'</div></div>');
|
||||
else uiintro.add('<div><div class="skill">'+es[i].outerHTML+'</div><div>'+lib.translate[es[i].name+'_info']+'</div></div>');
|
||||
uiintro.content.lastChild.querySelector('.skill>.card').style.transform='';
|
||||
|
||||
if(lib.translate[es[i].name+'_append']){
|
||||
uiintro.add('<div class="text">'+lib.translate[es[i].name+'_append']+'</div>');
|
||||
}
|
||||
}
|
||||
var js=node.getCards('j');
|
||||
for(var i=0;i<js.length;i++){
|
||||
|
|
|
@ -41586,7 +41586,7 @@ var pinyin_dict_withtone = "yī,dīng zhēng,kǎo qiǎo yú,qī,shàng,xià,hǎn
|
|||
temp = '';
|
||||
for (var j = 0; j < max && (i + j) < chinese.length; j++) {
|
||||
if (!dict.withtone[chinese[i]]) {
|
||||
m-=(result[i].length-1);
|
||||
i+=(result[i].length-1);
|
||||
break;
|
||||
} // 如果碰到非汉字直接停止本次查找
|
||||
temp += chinese[i + j];
|
||||
|
|
Loading…
Reference in New Issue