This commit is contained in:
parent
08396fc8a9
commit
aaa0d617d2
|
@ -66,12 +66,7 @@ card.sp={
|
|||
},
|
||||
shengdong:{
|
||||
fullskin:true,
|
||||
enable:function(card,player){
|
||||
var hs=player.get('h');
|
||||
if(hs.length>1) return true;
|
||||
if(hs.length==1&&hs[0]!=card) return true;
|
||||
return false;
|
||||
},
|
||||
enable:true,
|
||||
chongzhu:function(){
|
||||
return game.players.length<=2;
|
||||
},
|
||||
|
@ -127,6 +122,7 @@ card.sp={
|
|||
target:function(player,target){
|
||||
var ok=false;
|
||||
var hs=player.get('h');
|
||||
if(hs.length<=1) return 0;
|
||||
for(var i=0;i<hs.length;i++){
|
||||
if(ai.get.value(hs[i])<=5){
|
||||
ok=true;
|
||||
|
|
|
@ -4288,8 +4288,11 @@ card.swd={
|
|||
});
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.gain(target.get('h').randomGet(),target);
|
||||
target.$give(1,player);
|
||||
var card=target.get('h').randomGet();
|
||||
if(card){
|
||||
player.gain(card,target);
|
||||
target.$giveAuto(card,player);
|
||||
}
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
|
@ -550,7 +550,7 @@ character.extra={
|
|||
var card=hej.randomGet();
|
||||
player.gain(card,event.targets[num]);
|
||||
if(get.position(card)=='h'){
|
||||
event.targets[num].$give(1,player);
|
||||
event.targets[num].$giveAuto(card,player);
|
||||
}
|
||||
else{
|
||||
event.targets[num].$give(card,player);
|
||||
|
|
|
@ -783,7 +783,7 @@ character.hearth={
|
|||
event.redo();
|
||||
}
|
||||
else{
|
||||
trigger.source.$give(1,player);
|
||||
trigger.source.$giveAuto(card,player);
|
||||
}
|
||||
game.delay(0.5);
|
||||
}
|
||||
|
|
|
@ -355,25 +355,10 @@ character.refresh={
|
|||
trigger:{player:'damageEnd'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return (event.source&&event.source.num('he'));
|
||||
return (event.source&&event.source.num('he')&&event.num>0&&event.source!=player);
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
event.num=trigger.num;
|
||||
"step 1"
|
||||
if(num==0||trigger.source.num('he')==0){
|
||||
event.finish();
|
||||
return;
|
||||
}
|
||||
event.num--;
|
||||
player.choosePlayerCard(get.prompt('refankui',trigger.source),trigger.source,ai.get.buttonValue,'he');
|
||||
"step 2"
|
||||
if(result.bool){
|
||||
player.logSkill('refankui',trigger.source);
|
||||
player.gain(result.links[0],trigger.source);
|
||||
trigger.source.$give(1,player);
|
||||
event.goto(1);
|
||||
}
|
||||
player.gainPlayerCard([1,trigger.num],get.prompt('fankui',trigger.source),trigger.source,ai.get.buttonValue,'he').set('logSkill',['fankui',trigger.source]);
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
|
|
|
@ -124,17 +124,10 @@ character.standard={
|
|||
trigger:{player:'damageEnd'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return (event.source&&event.source.num('he'));
|
||||
return (event.source&&event.source.num('he')&&event.source!=player);
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.choosePlayerCard(get.prompt('fankui',trigger.source),trigger.source,ai.get.buttonValue,'he');
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.logSkill('fankui',trigger.source);
|
||||
player.gain(result.links[0],trigger.source);
|
||||
trigger.source.$give(1,player);
|
||||
}
|
||||
player.gainPlayerCard(get.prompt('fankui',trigger.source),trigger.source,ai.get.buttonValue,'he').set('logSkill',['fankui',trigger.source]);
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
|
|
|
@ -4719,8 +4719,7 @@ character.swd={
|
|||
else{
|
||||
player.gain(result.buttons[0].link,event.target);
|
||||
}
|
||||
event.target.$give(1,player);
|
||||
game.delay();
|
||||
event.target.$giveAuto(result.buttons[0].link,player);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -7735,8 +7734,7 @@ character.swd={
|
|||
"step 1"
|
||||
if(result.bool){
|
||||
player.gain(result.links[0],target);
|
||||
target.$give(1,player);
|
||||
game.delay(0,500);
|
||||
target.$giveAuto(result.links[0],player);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
|
@ -114,7 +114,7 @@ character.xianjian={
|
|||
trigger.target.$give(card,player);
|
||||
}
|
||||
else{
|
||||
trigger.target.$give(1,player);
|
||||
trigger.target.$giveAuto(card,player);
|
||||
}
|
||||
'step 1'
|
||||
if(game.players.length>2){
|
||||
|
|
|
@ -602,7 +602,7 @@ character.yijiang={
|
|||
player.$give(card,trigger.source);
|
||||
}
|
||||
else{
|
||||
player.$give(1,trigger.source);
|
||||
player.$giveAuto(card,trigger.source);
|
||||
}
|
||||
trigger.untrigger();
|
||||
trigger.finish();
|
||||
|
@ -1188,8 +1188,9 @@ character.yijiang={
|
|||
audio:2,
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.gain(target.get('h').randomGet(),target);
|
||||
target.$give(1,player);
|
||||
var card=target.get('h').randomGet();
|
||||
player.gain(card,target);
|
||||
target.$giveAuto(card,player);
|
||||
'step 1'
|
||||
var name=get.translation(target.name);
|
||||
player.chooseControl(function(){
|
||||
|
|
|
@ -856,7 +856,7 @@ character.yxs={
|
|||
if(hs.length){
|
||||
event.card=hs.randomGet();
|
||||
player.gain(event.card,target);
|
||||
target.$give(1,player);
|
||||
target.$giveAuto(event.card,player);
|
||||
}
|
||||
else{
|
||||
event.finish();
|
||||
|
|
|
@ -30205,6 +30205,10 @@
|
|||
var nodes=[];
|
||||
_status.clickingidentity=[this.parentNode,nodes];
|
||||
var num=1;
|
||||
var dy=30;
|
||||
if(get.is.phoneLayout()){
|
||||
dy=40;
|
||||
}
|
||||
for(var i in list){
|
||||
if(this.firstChild.innerHTML!=list[i]){
|
||||
var node=ui.create.div('.identity.hidden',this.parentNode,ui.click.identity2);
|
||||
|
@ -30212,7 +30216,7 @@
|
|||
node.dataset.color=i;
|
||||
ui.refresh(node);
|
||||
node.show();
|
||||
var transstr='translateY('+((num++)*30)+'px)';
|
||||
var transstr='translateY('+((num++)*dy)+'px)';
|
||||
if(get.is.phoneLayout()){
|
||||
transstr+=' scale(1.3)';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue