bug fixs
This commit is contained in:
parent
7d2ffba9b4
commit
c3608b7ef9
|
@ -1148,38 +1148,34 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"step 3"
|
"step 3"
|
||||||
if(event.target.isDead()||event.player.isDead()){
|
if(result.bool){
|
||||||
event.finish();
|
event.shaRequired--;
|
||||||
}
|
if(event.turn==target){
|
||||||
else{
|
if(result.cards) event.targetCards.addArray(result.cards);
|
||||||
if(result.bool){
|
if(event.shaRequired>0) event.goto(2);
|
||||||
event.shaRequired--;
|
|
||||||
if(event.turn==target){
|
|
||||||
if(result.cards) event.targetCards.addArray(result.cards);
|
|
||||||
if(event.shaRequired>0) event.goto(2);
|
|
||||||
else{
|
|
||||||
event.turn=player;
|
|
||||||
event.goto(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
if(result.cards) event.playerCards.addArray(result.cards);
|
event.turn=player;
|
||||||
if(event.shaRequired>0) event.goto(2);
|
event.goto(1);
|
||||||
else{
|
|
||||||
event.turn=target;
|
|
||||||
event.goto(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(event.turn==target){
|
if(result.cards) event.playerCards.addArray(result.cards);
|
||||||
target.damage();
|
if(event.shaRequired>0) event.goto(2);
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
player.damage(target);
|
event.turn=target;
|
||||||
|
event.goto(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
if(event.turn==target){
|
||||||
|
target.damage();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
player.damage(target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
event._result={};
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
wuxie:function(target,card,player,viewer){
|
wuxie:function(target,card,player,viewer){
|
||||||
|
|
|
@ -2278,7 +2278,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
'step 1'
|
'step 1'
|
||||||
//特殊处理
|
//特殊处理
|
||||||
if(player.isDead()){
|
if(player.isDead()){
|
||||||
player.useResult(event.result,event.getParent())
|
player.useResult(event.result,event.getParent()).forceDie=true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
|
|
29
game/game.js
29
game/game.js
|
@ -25152,24 +25152,25 @@
|
||||||
},
|
},
|
||||||
addJudgeNext:function(card,unlimited){
|
addJudgeNext:function(card,unlimited){
|
||||||
if(!card.expired){
|
if(!card.expired){
|
||||||
if(!unlimited&&get.position(card,true)!=='o'&&get.position(card,true)!=='j'){
|
let target=this.next;
|
||||||
game.log('将',card,'移入',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;
|
return;
|
||||||
}
|
}
|
||||||
var target=this.next;
|
for(let iwhile=0;iwhile<20;iwhile++){
|
||||||
var name=card.viewAs||card.name;
|
|
||||||
var bool=false;
|
|
||||||
for(var iwhile=0;iwhile<20;iwhile++){
|
|
||||||
if(target.canAddJudge(card)){
|
if(target.canAddJudge(card)){
|
||||||
bool=true;break;
|
bool=true;break;
|
||||||
}
|
}
|
||||||
target=target.next;
|
target=target.next;
|
||||||
}
|
}
|
||||||
if(!bool){
|
if(bool){
|
||||||
game.log(card,'进入了弃牌堆');
|
|
||||||
game.cardsDiscard(card);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(card.cards&&card.cards.length){
|
if(card.cards&&card.cards.length){
|
||||||
target.addJudge(name,card.cards[0]);
|
target.addJudge(name,card.cards[0]);
|
||||||
}
|
}
|
||||||
|
@ -56223,7 +56224,7 @@
|
||||||
if(!extraInformations) return false;
|
if(!extraInformations) return false;
|
||||||
for(const extraInformation of extraInformations){
|
for(const extraInformation of extraInformations){
|
||||||
if(!extraInformation.startsWith('doublegroup:')) continue;
|
if(!extraInformation.startsWith('doublegroup:')) continue;
|
||||||
return Boolean(array)&&extraInformation.split(':').slice(1);
|
return array?extraInformation.split(':').slice(1):true;
|
||||||
}
|
}
|
||||||
return false;
|
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>');
|
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>');
|
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='';
|
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');
|
var js=node.getCards('j');
|
||||||
for(var i=0;i<js.length;i++){
|
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 = '';
|
temp = '';
|
||||||
for (var j = 0; j < max && (i + j) < chinese.length; j++) {
|
for (var j = 0; j < max && (i + j) < chinese.length; j++) {
|
||||||
if (!dict.withtone[chinese[i]]) {
|
if (!dict.withtone[chinese[i]]) {
|
||||||
m-=(result[i].length-1);
|
i+=(result[i].length-1);
|
||||||
break;
|
break;
|
||||||
} // 如果碰到非汉字直接停止本次查找
|
} // 如果碰到非汉字直接停止本次查找
|
||||||
temp += chinese[i + j];
|
temp += chinese[i + j];
|
||||||
|
|
Loading…
Reference in New Issue