This commit is contained in:
libccy 2015-05-14 22:28:29 +08:00
parent 2c18c826a7
commit 721b176284
4 changed files with 8 additions and 3 deletions

View File

@ -677,7 +677,7 @@ card.standard={
return 0; return 0;
} }
if(target.num('h','sha')>player.num('h','sha')){ if(target.num('h','sha')>player.num('h','sha')){
return -2; if(Math.random()<0.5) return -2;
} }
return -0.5; return -0.5;
} }

View File

@ -1098,7 +1098,6 @@ character.sp={
filter:function(event,player){ filter:function(event,player){
if(event.player.num('h')) return false; if(event.player.num('h')) return false;
if(_status.currentPhase==event.player) return false; if(_status.currentPhase==event.player) return false;
if(event.player==player) return false;
for(var i=0;i<event.cards.length;i++){ for(var i=0;i<event.cards.length;i++){
if(event.cards[i].original=='h') return true; if(event.cards[i].original=='h') return true;
} }

View File

@ -577,10 +577,14 @@ character.yijiang={
xiantu:{ xiantu:{
unique:true, unique:true,
gainnable:true, gainnable:true,
forceunique:true,
trigger:{global:'phaseUseBegin'}, trigger:{global:'phaseUseBegin'},
filter:function(event,player){ filter:function(event,player){
return event.player!=player&&player.num('h')>0; return event.player!=player&&player.num('h')>0;
}, },
prompt:function(event,player){
return '是否对'+get.translation(event.player)+'发动【献图】?'
},
check:function(event,player){ check:function(event,player){
if(ai.get.attitude(player,event.player)<5) return false; if(ai.get.attitude(player,event.player)<5) return false;
if(player.maxHp-player.hp>=2) return false; if(player.maxHp-player.hp>=2) return false;

View File

@ -1935,8 +1935,10 @@ window.play={};
else{ else{
game.log(get.translation(player)+'被连环'); game.log(get.translation(player)+'被连环');
} }
if(lib.config.background_audio){
game.playAudio('effect','link');
}
player.classList.toggle('linked'); player.classList.toggle('linked');
game.playAudio('effect','link');
}, },
}, },