This commit is contained in:
parent
76a7f5372d
commit
d55a359e45
|
@ -299,6 +299,7 @@ character.old={
|
||||||
event.finish();
|
event.finish();
|
||||||
}
|
}
|
||||||
'step 2'
|
'step 2'
|
||||||
|
player.line(result.targets);
|
||||||
result.targets[0].gain(event.cards,'draw');
|
result.targets[0].gain(event.cards,'draw');
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
|
|
|
@ -1880,6 +1880,7 @@ character.ow={
|
||||||
if(current&&ai.get.attitude(player,current)<0){
|
if(current&&ai.get.attitude(player,current)<0){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if(target.hp==1) return 0.5;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,8 @@ character.shenhua={
|
||||||
|
|
||||||
event.current=targets[0];
|
event.current=targets[0];
|
||||||
event.dialog=dialog;
|
event.dialog=dialog;
|
||||||
|
event.num1=0;
|
||||||
|
event.num2=0;
|
||||||
game.delay();
|
game.delay();
|
||||||
'step 1'
|
'step 1'
|
||||||
if(event.dialog.buttons.length>1){
|
if(event.dialog.buttons.length>1){
|
||||||
|
@ -135,7 +137,6 @@ character.shenhua={
|
||||||
else{
|
else{
|
||||||
event.current.$draw(1,'nobroadcast');
|
event.current.$draw(1,'nobroadcast');
|
||||||
}
|
}
|
||||||
event.current.$gain2(card);
|
|
||||||
game.broadcast(function(card,id,target){
|
game.broadcast(function(card,id,target){
|
||||||
var dialog=get.idDialog(id);
|
var dialog=get.idDialog(id);
|
||||||
if(dialog&&dialog.seeing){
|
if(dialog&&dialog.seeing){
|
||||||
|
@ -154,16 +155,22 @@ character.shenhua={
|
||||||
},card,dialog.videoId,event.current);
|
},card,dialog.videoId,event.current);
|
||||||
}
|
}
|
||||||
game.delay(2);
|
game.delay(2);
|
||||||
|
if(event.current==targets[0]){
|
||||||
|
event.num1++;
|
||||||
|
event.current=targets[1];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
event.num2++;
|
||||||
|
event.current=targets[0];
|
||||||
|
}
|
||||||
if(dialog.buttons.length){
|
if(dialog.buttons.length){
|
||||||
if(event.current==targets[0]){
|
|
||||||
event.current=targets[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
event.current=targets[0];
|
|
||||||
}
|
|
||||||
event.goto(1);
|
event.goto(1);
|
||||||
}
|
}
|
||||||
'step 3'
|
'step 3'
|
||||||
|
if(!_status.connectMode){
|
||||||
|
game.log(targets[0],'获得了'+get.cnNumber(event.num1)+'张牌');
|
||||||
|
game.log(targets[1],'获得了'+get.cnNumber(event.num2)+'张牌');
|
||||||
|
}
|
||||||
var dialog=event.dialog;
|
var dialog=event.dialog;
|
||||||
dialog.close();
|
dialog.close();
|
||||||
_status.dieClose.remove(dialog);
|
_status.dieClose.remove(dialog);
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 63 KiB |
Loading…
Reference in New Issue