This commit is contained in:
libccy 2017-04-01 15:12:56 +08:00
parent 6c1ce7017d
commit 8b32f584c0
3 changed files with 42 additions and 37 deletions

View File

@ -4246,10 +4246,10 @@ character.hearth={
selectTarget:function(){ selectTarget:function(){
return [1,_status.event.player.hujia]; return [1,_status.event.player.hujia];
}, },
contentBefore:function(){
player.changeHujia(-player.hujia);
},
content:function(){ content:function(){
if(target==targets[0]){
player.changeHujia(-player.hujia);
}
target.damage(); target.damage();
}, },
ai:{ ai:{

View File

@ -1273,25 +1273,29 @@ character.ow={
return [1,_status.event.player.countCards('he',{color:'black'})]; return [1,_status.event.player.countCards('he',{color:'black'})];
}, },
alter:true, alter:true,
delay:false,
contentBefore:function(){
'step 0'
game.delayx();
'step 1'
player.storage.baoxue=true;
player.awakenSkill('baoxue');
player.showHandcards();
player.discard(player.getCards('he',{color:'black'}));
},
content:function(){ content:function(){
'step 0' 'step 0'
if(target==targets[0]){
player.storage.baoxue=true;
player.awakenSkill('baoxue');
player.showHandcards();
player.discard(player.getCards('he',{color:'black'}));
}
'step 1'
if(!get.is.altered('baoxue')){ if(!get.is.altered('baoxue')){
var he=target.getCards('he'); var he=target.getCards('he');
if(he.length){ if(he.length){
target.discard(he.randomGet()); target.discard(he.randomGet());
} }
} }
'step 2' 'step 1'
target.turnOver(true); target.turnOver(true);
'step 3' },
if(get.is.altered('baoxue')&&target==targets[targets.length-1]){ contentAfter:function(){
if(get.is.altered('baoxue')){
player.turnOver(true); player.turnOver(true);
} }
}, },
@ -2660,13 +2664,13 @@ character.ow={
return target.isDamaged(); return target.isDamaged();
}, },
selectTarget:[1,Infinity], selectTarget:[1,Infinity],
contentBefore:function(){
player.turnOver();
player.addSkill('sheng2');
player.awakenSkill('sheng');
player.storage.sheng=true;
},
content:function(){ content:function(){
if(target==targets[0]){
player.turnOver();
player.addSkill('sheng2');
player.awakenSkill('sheng');
player.storage.sheng=true;
}
target.recover(); target.recover();
}, },
ai:{ ai:{

View File

@ -1259,11 +1259,11 @@ character.swd={
}, },
filterTarget:true, filterTarget:true,
selectTarget:[1,Infinity], selectTarget:[1,Infinity],
contentBefore:function(){
player.awakenSkill('jinlin');
player.storage.jinlin=true;
},
content:function(){ content:function(){
if(target==targets[0]){
player.awakenSkill('jinlin');
player.storage.jinlin=true;
}
target.changeHujia(3); target.changeHujia(3);
target.addSkill('jinlin2'); target.addSkill('jinlin2');
target.storage.jinlin2=3; target.storage.jinlin2=3;
@ -4488,21 +4488,23 @@ character.swd={
return player!=target; return player!=target;
}, },
selectTarget:-1, selectTarget:-1,
content:function(){ delay:false,
"step 0" contentBefore:function(){
if(target==targets[0]){ 'step 0'
var cards=player.getCards('hej'); game.delayx();
for(var i=0;i<cards.length;i++){ 'step 1'
if(get.color(cards[i])!='black'){ var cards=player.getCards('hej');
cards.splice(i,1);i--; for(var i=0;i<cards.length;i++){
} if(get.color(cards[i])!='black'){
cards.splice(i,1);i--;
} }
cards.sort(lib.sort.random);
player.discard(cards);
player.storage.miejing=true;
player.unmarkSkill('miejing');
} }
"step 1" cards.sort(lib.sort.random);
player.discard(cards);
player.storage.miejing=true;
player.unmarkSkill('miejing');
},
content:function(){
target.damage('thunder'); target.damage('thunder');
} }
}, },
@ -7146,7 +7148,6 @@ character.swd={
} }
} }
}); });
console.log(num);
next.ai=function(card){ next.ai=function(card){
if(trigger.player.hasSkillTag('nofire')) return 0; if(trigger.player.hasSkillTag('nofire')) return 0;
if(num>0){ if(num>0){